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
This commit is contained in:
Jilles Tjoelker 2012-09-26 20:47:39 +00:00
parent bedab466ce
commit 0096926b7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240974

View File

@ -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;