[hackers] [sbase] find: NULL terminate braces array in exec primary || Wolfgang Corcoran-Mathe

From: <git_AT_suckless.org>
Date: Thu, 23 Jul 2015 12:51:10 +0200 (CEST)

commit 5dab8bbfa9ff0ae67c02ebf14b7e46c1d8d642e9
Author: Wolfgang Corcoran-Mathe <first.lord.of.teal_AT_gmail.com>
AuthorDate: Sat Jul 11 14:17:22 2015 -0400
Commit: sin <sin_AT_2f30.org>
CommitDate: Thu Jul 23 11:51:05 2015 +0100

    find: NULL terminate braces array in exec primary

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;
Received on Thu Jul 23 2015 - 12:51:10 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 23 2015 - 13:00:13 CEST