Author: jilles
Date: Wed Sep 26 20:47:39 2012
New Revision: 240974
URL: http://svn.freebsd.org/changeset/base/240974

Log:
  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
  MFC after:    1 week

Modified:
  head/libexec/atrun/atrun.c

Modified: head/libexec/atrun/atrun.c
==============================================================================
--- head/libexec/atrun/atrun.c  Wed Sep 26 20:16:15 2012        (r240973)
+++ head/libexec/atrun/atrun.c  Wed Sep 26 20:47:39 2012        (r240974)
@@ -123,7 +123,7 @@ run_file(const char *filename, uid_t uid
     pid_t pid;
     int fd_out, fd_in;
     int queue;
-    char mailbuf[MAXLOGNAME], fmt[49];
+    char mailbuf[MAXLOGNAME], fmt[64];
     char *mailname = NULL;
     FILE *stream;
     int send_mail = 0;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to