summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32ProcessExecution.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-10-28 15:52:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-10-28 15:52:23 (GMT)
commitc78df4615355431db6b50c750258f3a5975b9321 (patch)
treeb6db6253cd4e67c984fe1c1d933cefb3b0e5da66 /Source/cmWin32ProcessExecution.cxx
parent74e66e311773373708e742c452070e6760b104dd (diff)
downloadCMake-c78df4615355431db6b50c750258f3a5975b9321.zip
CMake-c78df4615355431db6b50c750258f3a5975b9321.tar.gz
CMake-c78df4615355431db6b50c750258f3a5975b9321.tar.bz2
BUG: fix stack over write bug
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r--Source/cmWin32ProcessExecution.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx
index 78c54c2..214bebb 100644
--- a/Source/cmWin32ProcessExecution.cxx
+++ b/Source/cmWin32ProcessExecution.cxx
@@ -791,7 +791,7 @@ bool cmWin32ProcessExecution::PrivateClose(int /* timeout */)
}
if (fserr.st_size > 0)
{
- char buffer[1023];
+ char buffer[1024];
int len = read(m_pStdErr, buffer, 1023);
buffer[len] = 0;
if ( m_Verbose )
@@ -803,7 +803,7 @@ bool cmWin32ProcessExecution::PrivateClose(int /* timeout */)
}
if (fsout.st_size > 0)
{
- char buffer[1023];
+ char buffer[1024];
int len = read(m_pStdOut, buffer, 1023);
buffer[len] = 0;
if ( m_Verbose )