svn commit: r241226 - stable/9/libexec/atrun

Jilles Tjoelker jilles at FreeBSD.org
Fri Oct 5 14:43:49 UTC 2012


Author: jilles
Date: Fri Oct  5 14:43:49 2012
New Revision: 241226
URL: http://svn.freebsd.org/changeset/base/241226

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/9/libexec/atrun/atrun.c
Directory Properties:
  stable/9/libexec/atrun/   (props changed)

Modified: stable/9/libexec/atrun/atrun.c
==============================================================================
--- stable/9/libexec/atrun/atrun.c	Fri Oct  5 14:42:38 2012	(r241225)
+++ stable/9/libexec/atrun/atrun.c	Fri Oct  5 14:43:49 2012	(r241226)
@@ -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;


More information about the svn-src-all mailing list