mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Fixed args parsing with quotes.
This commit is contained in:
parent
1f0820dd6a
commit
5664830f35
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user