Fixed args parsing with quotes.

This commit is contained in:
yellows8 2018-02-27 02:14:23 -05:00
parent 1f0820dd6a
commit 5664830f35

View File

@ -103,13 +103,14 @@ void argvSetup(void)
else {
end_flag = 0;
if (quote_flag && args[argi] == '"') {
end_flag = 1;
if (quote_flag) {
if (args[argi] == '"') end_flag = 1;
}
else if (isspace(args[argi])) {
end_flag = 1;
}
else if(args[argi]!=0) {
if(end_flag==0 && args[argi]!=0) {
arglen++;
}