1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-20 08:20:37 +02:00
openwrt-xburst/package/uci/patches/100-gcc_warning.patch
nbd c67f654fdd 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
2009-04-30 19:34:49 +00:00

12 lines
180 B
Diff

--- 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;