find: NULL terminate braces array in exec primary

This commit is contained in:
Wolfgang Corcoran-Mathe 2015-07-11 14:17:22 -04:00 committed by sin
parent 015fb69f01
commit 5dab8bbfa9

1
find.c
View File

@ -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;