Author: jilles
Date: Mon Oct  8 14:05:00 2012
New Revision: 241350
URL: http://svn.freebsd.org/changeset/base/241350

Log:
  MFC r240974: atrun: Do not assume that MAXLOGNAME <= 100.
  
  The reserved space for fmt was exactly sufficient for a two-digit value of
  MAXLOGNAME - 1.
  
  PR:           bin/171815
  Submitted by: Jeremy Huddleston Sequoia

Modified:
  stable/8/libexec/atrun/atrun.c
Directory Properties:
  stable/8/libexec/atrun/   (props changed)

Modified: stable/8/libexec/atrun/atrun.c
==============================================================================
--- stable/8/libexec/atrun/atrun.c      Mon Oct  8 13:45:40 2012        
(r241349)
+++ stable/8/libexec/atrun/atrun.c      Mon Oct  8 14:05:00 2012        
(r241350)
@@ -130,7 +130,7 @@ run_file(const char *filename, uid_t uid
     pid_t pid;
     int fd_out, fd_in;
     int queue;
-    char mailbuf[LOGNAMESIZE + 1], fmt[49];
+    char mailbuf[LOGNAMESIZE + 1], fmt[64];
     char *mailname = NULL;
     FILE *stream;
     int send_mail = 0;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to