[hackers] [sbase] NULL terminate braces array in get_ok_arg || Evan Gates

From: <git_AT_suckless.org>
Date: Thu, 18 Jun 2015 15:24:19 +0200 (CEST)

commit 1490b37bd2c9256697a28312abb7be8d6b5ba636
Author: Evan Gates <evan.gates_AT_gmail.com>
Date: Mon Jun 15 13:49:38 2015 -0700

    NULL terminate braces array in get_ok_arg

diff --git a/find.c b/find.c
index dcefca5..e9d8c1d 100644
--- a/find.c
+++ b/find.c
_AT_@ -635,6 +635,7 @@ get_ok_arg(char *argv[], union extra *extra)
         for (arg = argv, braces = o->braces; *arg; arg++)
                 if (!strcmp(*arg, "{}"))
                         *braces++ = arg;
+ *braces = NULL;
 
         gflags.print = 0;
         return arg;
Received on Thu Jun 18 2015 - 15:24:19 CEST

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