aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-03-28 22:12:17 +0200
committerStapleButter <thetotalworm@gmail.com>2017-03-28 22:12:17 +0200
commitd6bab52baa4882300b49e07f3955c64c47c1a60b (patch)
tree63cbd9ba8d700b0560a596113442b81e42b2ff37
parentb5f461b9501eda2dbe1625e8cc6fbd5f4b30debb (diff)
oops
-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==' ')
{