summaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-12 14:23:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-06-12 14:23:27 +0000
commit1ad0c04c44e3e04fc3869ad43402979467a43406 (patch)
tree59848f95a38c55f8a1a680b8916f479ea8f6b07a /usr.bin/patch/patch.c
parent313a9f9dbc17a99d90b74769f13b57c403262d04 (diff)
rejname[] is also -r option buffer, and should be PATH_MAX
ok millert
Diffstat (limited to 'usr.bin/patch/patch.c')
-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;