From a25765a1cfff9bde6300f15ee7515c4675f33221 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 11 Jun 2007 22:30:56 +0000 Subject: 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 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3