diff options
-rw-r--r-- | src/subprocess-win32.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subprocess-win32.cc b/src/subprocess-win32.cc index 49ccfa8..acc2760 100644 --- a/src/subprocess-win32.cc +++ b/src/subprocess-win32.cc @@ -53,9 +53,9 @@ Subprocess::~Subprocess() { } HANDLE Subprocess::SetupPipe(HANDLE ioport) { - char pipe_name[32]; + char pipe_name[100]; snprintf(pipe_name, sizeof(pipe_name), - "\\\\.\\pipe\\ninja_%p_out", ::GetModuleHandle(NULL)); + "\\\\.\\pipe\\ninja_pid%u_sp%p", GetProcessId(GetCurrentProcess()), this); pipe_ = ::CreateNamedPipeA(pipe_name, PIPE_ACCESS_INBOUND | FILE_FLAG_OVERLAPPED, |