svn commit: r327063 - head/usr.bin/patch

Pedro F. Giffuni pfg at FreeBSD.org
Thu Dec 21 16:19:12 UTC 2017


Author: pfg
Date: Thu Dec 21 16:19:10 2017
New Revision: 327063
URL: https://svnweb.freebsd.org/changeset/base/327063

Log:
  patch: rejname[] is also -r option buffer, and should be PATH_MAX.
  
  Obtained from:	OpenBSD (CVS 1.64)

Modified:
  head/usr.bin/patch/patch.c

Modified: head/usr.bin/patch/patch.c
==============================================================================
--- head/usr.bin/patch/patch.c	Thu Dec 21 15:19:43 2017	(r327062)
+++ head/usr.bin/patch/patch.c	Thu Dec 21 16:19:10 2017	(r327063)
@@ -112,7 +112,7 @@ static bool	reverse_flag_specified = false;
 static bool	Vflag = false;
 
 /* buffer holding the name of the rejected patch file. */
-static char	rejname[NAME_MAX + 1];
+static char	rejname[PATH_MAX];
 
 /* how many input lines have been irretractibly output */
 static LINENUM	last_frozen_line = 0;


More information about the svn-src-head mailing list