diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-04-30 19:34:49 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-04-30 19:34:49 +0000 |
commit | c67f654fdd7103ac09c2225aa2d71e06aec5a883 (patch) | |
tree | de94319dbc7380688a0491de49b383694bd19fb3 /package/uci | |
parent | 58d1754161d702caadcd215ea35cd9eafc228a7a (diff) |
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 000000000..9ac51448b --- /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; |