Diff for /freem/src/events.c between versions 1.4 and 1.5

version 1.4, 2025/03/22 18:43:54 version 1.5, 2025/04/13 04:22:43
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/04/13 04:22:43  snw
    *   Fix snprintf calls
    *
  *   Revision 1.4  2025/03/22 18:43:54  snw   *   Revision 1.4  2025/03/22 18:43:54  snw
  *   Make STRLEN 255 chars and add BIGSTR macro for larger buffers   *   Make STRLEN 255 chars and add BIGSTR macro for larger buffers
  *   *
Line 273  int evt_get_handlers (char *buf) { Line 276  int evt_get_handlers (char *buf) {
     mref_init (r, MREF_RT_SSVN, "^$JOB");      mref_init (r, MREF_RT_SSVN, "^$JOB");
     mref_init (rs, MREF_RT_SSVN, "^$SYSTEM");      mref_init (rs, MREF_RT_SSVN, "^$SYSTEM");
           
     snprintf (pid_s, 9, "%d", pid);      snprintf (pid_s, sizeof (pid_s) - 1, "%d", pid);
           
   
     while ((e = evt_dequeue ()) != NULL) {             while ((e = evt_dequeue ()) != NULL) {       
Line 368  short evt_registered (char *event_id, sh Line 371  short evt_registered (char *event_id, sh
           
     mref_init (r, MREF_RT_SSVN, "^$JOB");      mref_init (r, MREF_RT_SSVN, "^$JOB");
   
     snprintf (pid_s, 9, "%d", pid);      snprintf (pid_s, sizeof (pid_s) - 1, "%d", pid);
           
     class_name = evt_class_name_c (evt_class);      class_name = evt_class_name_c (evt_class);
   

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


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