From: deraadt Date: Mon, 12 Jun 2017 14:23:26 +0000 (+0000) Subject: rejname[] is also -r option buffer, and should be PATH_MAX X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=04fc40a306a520028096acaa2ab99f66611ed7f0;p=openbsd rejname[] is also -r option buffer, and should be PATH_MAX ok millert --- 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;