]> pilppa.com Git - uci.git/commitdiff
increase argv in batch mode to silence a false gcc 4.4 warning
authorFelix Fietkau <nbd@openwrt.org>
Thu, 30 Apr 2009 19:35:53 +0000 (21:35 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 30 Apr 2009 19:35:53 +0000 (21:35 +0200)
cli.c

diff --git a/cli.c b/cli.c
index 36ef6e5d1cbbedbd3baa07d8a11f4dbd7dd27db2..25a61f872b540347012c483bc8a30445376fa190 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -462,7 +462,7 @@ static int uci_do_section_cmd(int cmd, int argc, char **argv)
 
 static int uci_batch_cmd(void)
 {
-       char *argv[MAX_ARGS];
+       char *argv[MAX_ARGS + 2];
        char *str = NULL;
        int ret = 0;
        int i, j;