From d6bab52baa4882300b49e07f3955c64c47c1a60b Mon Sep 17 00:00:00 2001 From: StapleButter Date: Tue, 28 Mar 2017 22:12:17 +0200 Subject: oops --- src/wx/main.cpp | 1 + 1 file changed, 1 insertion(+) 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==' ') { -- cgit v1.2.3