diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-04-30 19:34:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-04-30 19:34:49 +0000 |
commit | 8bebfa01a3a816171d4091ee3aaf12ec1338bed9 (patch) | |
tree | de94319dbc7380688a0491de49b383694bd19fb3 /package/uci | |
parent | eea5e1303273cfee31e0f5a1dca1ff3724049a9a (diff) | |
download | upstream-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.patch | 11 |
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; |