From 5dab8bbfa9ff0ae67c02ebf14b7e46c1d8d642e9 Mon Sep 17 00:00:00 2001 From: Wolfgang Corcoran-Mathe Date: Sat, 11 Jul 2015 14:17:22 -0400 Subject: [PATCH] find: NULL terminate braces array in exec primary --- 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 @@ -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;