[hackers] [sbase] [PATCH 1/3] find: Fix unterminated array in -ok primary

From: Wolfgang Corcoran-Mathe <first.lord.of.teal_AT_gmail.com>
Date: Mon, 15 Jun 2015 15:27:36 -0400

---
 find.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/find.c b/find.c
index dedf5a1..a870a90 100644
--- a/find.c
+++ b/find.c
_AT_@ -429,6 +429,7 @@ pri_ok(struct arg *arg)
 	/* insert filename everywhere user gave us {} */
 	for (brace = o->braces; *brace; brace++)
 		**brace = arg->path;
+	*brace = NULL;
 
 	switch((pid = fork())) {
 	case -1:
-- 
2.3.5
Received on Mon Jun 15 2015 - 21:27:36 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:37:16 CEST