diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index 3badb194d26..cb002132bfe 100644 --- a/lib/System/Win32/Program.inc +++ b/lib/System/Win32/Program.inc @@ -134,7 +134,7 @@ Program::ExecuteAndWait(const Path& path, } // Now build the command line. - char *command = reinterpret_cast(_alloca(len)); + char *command = reinterpret_cast(_alloca(len+1)); char *p = command; for (unsigned i = 0; args[i]; i++) {