--- freem/src/cmd_write.c 2025/03/09 19:14:24 1.3 +++ freem/src/cmd_write.c 2025/03/22 18:43:54 1.4 @@ -1,5 +1,5 @@ /* - * $Id: cmd_write.c,v 1.3 2025/03/09 19:14:24 snw Exp $ + * $Id: cmd_write.c,v 1.4 2025/03/22 18:43:54 snw Exp $ * Implementation of the WRITE command * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: cmd_write.c,v $ + * 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 * First phase of REUSE compliance and header reformat * @@ -44,7 +47,7 @@ MRESULT cmd_write(MACTION *ra, int *i) { char vn[255]; 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(sw_buf,"cmd_write");