NULL-terminated argument list in case where there are given more arguments than expected.
This commit is contained in:
VilhoRaatikka 2014-12-23 18:12:23 +02:00
parent ff5fe23ce6
commit 8e1e72132b

View File

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