diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/System/Win32/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Win32/Program.inc b/llvm/lib/System/Win32/Program.inc index 3badb194d26..cb002132bfe 100644 --- a/llvm/lib/System/Win32/Program.inc +++ b/llvm/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++) { |

