aboutsummaryrefslogtreecommitdiffstats
path: root/package/uci
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-04-30 19:34:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-04-30 19:34:49 +0000
commit8bebfa01a3a816171d4091ee3aaf12ec1338bed9 (patch)
treede94319dbc7380688a0491de49b383694bd19fb3 /package/uci
parenteea5e1303273cfee31e0f5a1dca1ff3724049a9a (diff)
downloadupstream-8bebfa01a3a816171d4091ee3aaf12ec1338bed9.tar.gz
upstream-8bebfa01a3a816171d4091ee3aaf12ec1338bed9.tar.bz2
upstream-8bebfa01a3a816171d4091ee3aaf12ec1338bed9.zip
uci: increase argv size in batch mode to silence a false gcc 4.4 compiler warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15521 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uci')
-rw-r--r--package/uci/patches/100-gcc_warning.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/uci/patches/100-gcc_warning.patch b/package/uci/patches/100-gcc_warning.patch
new file mode 100644
index 0000000000..9ac51448b6
--- /dev/null
+++ b/package/uci/patches/100-gcc_warning.patch
@@ -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;