diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-06-24 13:05:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-06-24 13:05:38 (GMT) |
commit | 2cf4a0270a1754c0e827795e611a201afcba076c (patch) | |
tree | e3bdf827572db140d009dd8e2b42a86b42403438 /Source/cmWin32ProcessExecution.cxx | |
parent | 78cc9adbd2efd01d934bdadef9852ae2010b4123 (diff) | |
download | CMake-2cf4a0270a1754c0e827795e611a201afcba076c.zip CMake-2cf4a0270a1754c0e827795e611a201afcba076c.tar.gz CMake-2cf4a0270a1754c0e827795e611a201afcba076c.tar.bz2 |
ENH: remove warning on borland
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r-- | Source/cmWin32ProcessExecution.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx index d06a33c..1522cda 100644 --- a/Source/cmWin32ProcessExecution.cxx +++ b/Source/cmWin32ProcessExecution.cxx @@ -456,8 +456,7 @@ static BOOL RealPopenCreateProcess(const char *cmdstring, // Free the buffer. - char* str = 0; - str = strcpy(new char[strlen((char*)lpMsgBuf)+1], (char*)lpMsgBuf); + char* str = strcpy(new char[strlen((char*)lpMsgBuf)+1], (char*)lpMsgBuf); LocalFree( lpMsgBuf ); output += "CreateProcessError: "; |