diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-09-26 20:47:39 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-09-26 20:47:39 +0000 |
commit | 0096926b7e5b9d006604d3ab582444881ab871ea (patch) | |
tree | 327743089a9e822f26c8c0f59aa273d2daa41aba /libexec/atrun | |
parent | bedab466ce221490b7f1d2bb85f7e6c194adc9c2 (diff) | |
download | src-0096926b7e5b9d006604d3ab582444881ab871ea.tar.gz src-0096926b7e5b9d006604d3ab582444881ab871ea.zip |
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
Notes
Notes:
svn path=/head/; revision=240974
Diffstat (limited to 'libexec/atrun')
-rw-r--r-- | libexec/atrun/atrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c index e4fc625fe3ee..0b6acbe4ffec 100644 --- a/libexec/atrun/atrun.c +++ b/libexec/atrun/atrun.c @@ -123,7 +123,7 @@ run_file(const char *filename, uid_t uid, gid_t gid) 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; |