Diff for /freem/src/cmd_write.c between versions 1.3 and 1.5

version 1.3, 2025/03/09 19:14:24 version 1.5, 2025/03/24 04:05:36
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.5  2025/03/24 04:05:36  snw
    *   Replace crlf with frm_crlf to avoid symbol conflict with readline on OS/2
    *
    *   Revision 1.4  2025/03/22 18:43:54  snw
    *   Make STRLEN 255 chars and add BIGSTR macro for larger buffers
    *
  *   Revision 1.3  2025/03/09 19:14:24  snw   *   Revision 1.3  2025/03/09 19:14:24  snw
  *   First phase of REUSE compliance and header reformat   *   First phase of REUSE compliance and header reformat
  *   *
Line 44  MRESULT cmd_write(MACTION *ra, int *i) Line 50  MRESULT cmd_write(MACTION *ra, int *i)
 {  {
     char vn[255];      char vn[255];
     char *wr_terminator = (char *) malloc (STRLEN * sizeof (char));      char *wr_terminator = (char *) malloc (STRLEN * sizeof (char));
     char *sw_buf = (char *) malloc (STRLEN * sizeof (char));      char *sw_buf = (char *) malloc (BIGSTR * sizeof (char));
           
     NULLPTRCHK(wr_terminator,"cmd_write");      NULLPTRCHK(wr_terminator,"cmd_write");
     NULLPTRCHK(sw_buf,"cmd_write");      NULLPTRCHK(sw_buf,"cmd_write");
Line 69  writeproc: Line 75  writeproc:
                           
             if (io < FIRSTSCK) {              if (io < FIRSTSCK) {
                                   
                 if (crlf[io]) {                  if (frm_crlf[io]) {
                     write_m ("\012\201");                      write_m ("\012\201");
                 }                  }
                 else {                  else {

Removed from v.1.3  
changed lines
  Added in v.1.5


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>