summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/patch/patch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c
index 8f8f8cd4e49..fef7df6466e 100644
--- a/usr.bin/patch/patch.c
+++ b/usr.bin/patch/patch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: patch.c,v 1.63 2016/01/04 14:09:46 gsoares Exp $ */
+/* $OpenBSD: patch.c,v 1.64 2017/06/12 14:23:26 deraadt Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -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;