diff options
Diffstat (limited to 'lib/System')
-rw-r--r-- | lib/System/Win32/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc index 3badb19..cb00213 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<char *>(_alloca(len)); + char *command = reinterpret_cast<char *>(_alloca(len+1)); char *p = command; for (unsigned i = 0; args[i]; i++) { |