Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2012 14:43:49 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r241226 - stable/9/libexec/atrun
Message-ID:  <201210051443.q95EhnMI087450@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Fri Oct  5 14:43:49 2012
New Revision: 241226
URL: http://svn.freebsd.org/changeset/base/241226

Log:
  MFC r240974: 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

Modified:
  stable/9/libexec/atrun/atrun.c
Directory Properties:
  stable/9/libexec/atrun/   (props changed)

Modified: stable/9/libexec/atrun/atrun.c
==============================================================================
--- stable/9/libexec/atrun/atrun.c	Fri Oct  5 14:42:38 2012	(r241225)
+++ stable/9/libexec/atrun/atrun.c	Fri Oct  5 14:43:49 2012	(r241226)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210051443.q95EhnMI087450>