summaryrefslogtreecommitdiffstats
path: root/libexec/atrun
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-09-26 20:47:39 +0000
committerjilles <jilles@FreeBSD.org>2012-09-26 20:47:39 +0000
commitf250e5973cbd366e6e777316ca573bcc4c135eda (patch)
tree327743089a9e822f26c8c0f59aa273d2daa41aba /libexec/atrun
parent93b351eaa9d39f5c5e7446be29cf65d16180193f (diff)
downloadFreeBSD-src-f250e5973cbd366e6e777316ca573bcc4c135eda.zip
FreeBSD-src-f250e5973cbd366e6e777316ca573bcc4c135eda.tar.gz
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
Diffstat (limited to 'libexec/atrun')
-rw-r--r--libexec/atrun/atrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/atrun/atrun.c b/libexec/atrun/atrun.c
index e4fc625..0b6acbe 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;
OpenPOWER on IntegriCloud