svn commit: r240974 - head/libexec/atrun
Jilles Tjoelker
jilles at FreeBSD.org
Wed Sep 26 20:47:40 UTC 2012
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;
More information about the svn-src-head
mailing list