Fix -Wvla error in cmd_execute
This commit is contained in:
parent
b77db2f638
commit
0e80080b7b
|
@ -126,8 +126,9 @@ static void cmd_execute(unsigned long argc, const char *const *const argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Otherwise */
|
/* Otherwise */
|
||||||
|
if (argc < 31)
|
||||||
{ // set value of cvar
|
{ // set value of cvar
|
||||||
const char *new_argv[argc+1];
|
const char *new_argv[32];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
new_argv[0] = "set";
|
new_argv[0] = "set";
|
||||||
|
|
Loading…
Reference in a new issue