summaryrefslogtreecommitdiff
path: root/cli.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-30 21:35:53 +0200
committerFelix Fietkau <nbd@openwrt.org>2009-04-30 21:35:53 +0200
commit13ccfd04a22f58928a29e9282ed30f5cc097165d (patch)
tree866080d3daafc78da44c2f4a944898cd8b6ac41f /cli.c
parent7840d049ef119fe2eb44c9f66f5af233c03f9d9c (diff)
downloaduci-13ccfd04a22f58928a29e9282ed30f5cc097165d.tar.gz
increase argv in batch mode to silence a false gcc 4.4 warning
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 36ef6e5..25a61f8 100644
--- 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;