From 5664830f354b60fb309a80d219182d0093e5847b Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 27 Feb 2018 02:14:23 -0500 Subject: [PATCH] Fixed args parsing with quotes. --- nx/source/runtime/argv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nx/source/runtime/argv.c b/nx/source/runtime/argv.c index 72975c54..13c89c68 100644 --- a/nx/source/runtime/argv.c +++ b/nx/source/runtime/argv.c @@ -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++; }