aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/main.cpp b/src/wx/main.cpp
index f27ab75..a406ac2 100644
--- a/src/wx/main.cpp
+++ b/src/wx/main.cpp
@@ -64,6 +64,7 @@ int CALLBACK WinMain(HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int cmdsho
for (int i = 0; i < len; i++)
{
char c = cmdline[i];
+ if (c == '\0') break;
if (c == '"') inquote = !inquote;
if (!inquote && c==' ')
{