NULL-terminated argument list in case where there are given more arguments than expected.
This commit is contained in:
parent
ff5fe23ce6
commit
8e1e72132b
@ -798,7 +798,7 @@ bool in_space = false;
|
||||
}
|
||||
}
|
||||
*lptr = 0;
|
||||
args[i+1] = NULL;
|
||||
args[MIN(MAXARGS-1,i+1)] = NULL;
|
||||
|
||||
if (args[0] == NULL || *args[0] == 0)
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user