version 1.3, 2025/03/09 19:14:24
|
version 1.4, 2025/03/22 18:43:54
|
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.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 47 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"); |