--- freem/src/events.c 2025/03/09 19:14:24 1.3 +++ freem/src/events.c 2025/03/22 18:43:54 1.4 @@ -1,5 +1,5 @@ /* - * $Id: events.c,v 1.3 2025/03/09 19:14:24 snw Exp $ + * $Id: events.c,v 1.4 2025/03/22 18:43:54 snw Exp $ * event framework * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: events.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 * @@ -252,7 +255,7 @@ int evt_get_handlers (char *buf) { int ct; evt_entry *e; - class_name = malloc (256 * sizeof (char)); + class_name = malloc (STRLEN * sizeof (char)); NULLPTRCHK(class_name,"evt_get_handlers"); t_buf = malloc (STRLEN * sizeof (char)); @@ -344,10 +347,10 @@ short evt_registered (char *event_id, sh char pid_s[10]; int ct; - t_key = malloc (256 * sizeof (char)); + t_key = malloc (STRLEN * sizeof (char)); NULLPTRCHK(t_key,"evt_registered"); - class_name = malloc (256 * sizeof (char)); + class_name = malloc (STRLEN * sizeof (char)); NULLPTRCHK(class_name,"evt_registered"); t_buf = malloc (STRLEN * sizeof (char));