uci: increase argv size in batch mode to silence a false gcc 4.4 compiler warning
[openwrt/svn-archive/archive.git] / package / uci / patches / 100-gcc_warning.patch
1 --- a/cli.c
2 +++ b/cli.c
3 @@ -462,7 +462,7 @@
4
5 static int uci_batch_cmd(void)
6 {
7 - char *argv[MAX_ARGS];
8 + char *argv[MAX_ARGS + 2];
9 char *str = NULL;
10 int ret = 0;
11 int i, j;