Browse Source

BUG: fix stack over write bug

Bill Hoffman 20 years ago
parent
commit
c78df46153
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmWin32ProcessExecution.cxx

+ 2 - 2
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 )