patch: rejname[] is also -r option buffer, and should be PATH_MAX.

Obtained from:	OpenBSD (CVS 1.64)
This commit is contained in:
Pedro F. Giffuni 2017-12-21 16:19:10 +00:00
parent 426b6bd53c
commit c844f14e37
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327063

View File

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