summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorderaadt <deraadt>2017-06-12 14:23:26 +0000
committerderaadt <deraadt>2017-06-12 14:23:26 +0000
commita88039ee43a8c6637fc62c8bc0f612134d897056 (patch)
treec00241abc0afca7c2bca21ae2330740c3b7e7edb
parent941c9f9ccb4311940f004d87429a813739ac24b5 (diff)
downloadpatch-a88039ee43a8c6637fc62c8bc0f612134d897056.tar
patch-a88039ee43a8c6637fc62c8bc0f612134d897056.tar.gz
rejname[] is also -r option buffer, and should be PATH_MAXOPENBSD_6_2_BASE
ok millert
-rw-r--r--patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch.c b/patch.c
index b90c623..3acf0a5 100644
--- a/patch.c
+++ b/patch.c
@@ -108,7 +108,7 @@ static bool remove_empty_files = false;
static bool reverse_flag_specified = 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;