From f250e5973cbd366e6e777316ca573bcc4c135eda Mon Sep 17 00:00:00 2001 From: jilles Date: Wed, 26 Sep 2012 20:47:39 +0000 Subject: [PATCH] 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 --- libexec/atrun/atrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;