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 36ef6e5..25a61f8 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)
 {
 
 static int uci_batch_cmd(void)
 {
-       char *argv[MAX_ARGS];
+       char *argv[MAX_ARGS + 2];
        char *str = NULL;
        int ret = 0;
        int i, j;
        char *str = NULL;
        int ret = 0;
        int i, j;