summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-11 22:30:56 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-11 22:30:56 +0000
commita25765a1cfff9bde6300f15ee7515c4675f33221 (patch)
treea636e95498504af2a3c188462193bef193ad98fe /src
parent9ee2d5ec71973a0f52080f99eb44858f0ac69e83 (diff)
We need to pass a copy of GetCommandLine() not the actual return pointer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7277 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index b7264033e..3fe830b13 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -78,7 +78,7 @@ DWORD WindowsForkStart(InspIRCd * Instance)
// Launch our "forked" process.
BOOL bSuccess = CreateProcess ( module, // Module (exe) filename
- GetCommandLine(), // Command line (exe plus parameters from the OS)
+ strdup(GetCommandLine()), // Command line (exe plus parameters from the OS)
0, // PROCESS_SECURITY_ATTRIBUTES
0, // THREAD_SECURITY_ATTRIBUTES
TRUE, // We went to inherit handles.