[hackers] [sbase] [PATCH] find: NULL terminate braces array in get_exec_arg

From: <first.lord.of.teal_AT_gmail.com>
Date: Thu, 18 Jun 2015 11:41:21 -0400

From: Wolfgang Corcoran-Mathe <first.lord.of.teal_AT_gmail.com>

---
 find.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/find.c b/find.c
index 186263b..75b9f8e 100644
--- a/find.c
+++ b/find.c
_AT_@ -607,6 +607,7 @@ get_exec_arg(char *argv[], union extra *extra)
 		for (arg = argv, braces = e->u.s.braces; *arg; arg++)
 			if (!strcmp(*arg, "{}"))
 				*braces++ = arg;
+		*braces = NULL;
 	}
 	gflags.print = 0;
 	return arg;
-- 
2.3.5
Received on Thu Jun 18 2015 - 17:41:21 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:48:11 CEST