svn commit: r241350 - stable/8/libexec/atrun

Jilles Tjoelker jilles at FreeBSD.org
Mon Oct 8 14:05:00 UTC 2012


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;


More information about the svn-src-stable-8 mailing list