uci: increase argv size in batch mode to silence a false gcc 4.4 compiler warning
authorFelix Fietkau <nbd@openwrt.org>
Thu, 30 Apr 2009 19:34:49 +0000 (19:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 30 Apr 2009 19:34:49 +0000 (19:34 +0000)
SVN-Revision: 15521

package/uci/patches/100-gcc_warning.patch [new file with mode: 0644]

diff --git a/package/uci/patches/100-gcc_warning.patch b/package/uci/patches/100-gcc_warning.patch
new file mode 100644 (file)
index 0000000..9ac5144
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/cli.c
++++ b/cli.c
+@@ -462,7 +462,7 @@
+ static int uci_batch_cmd(void)
+ {
+-      char *argv[MAX_ARGS];
++      char *argv[MAX_ARGS + 2];
+       char *str = NULL;
+       int ret = 0;
+       int i, j;