COMP:Try to fix compile error with qnx gcc.

This commit is contained in:
Francois Bertel 2009-03-16 17:38:17 -04:00
parent d0b32b42a1
commit 257937f2bd
1 changed files with 2 additions and 1 deletions

View File

@ -2137,10 +2137,11 @@ static void kwsysProcessChildErrorExit(int errorPipe)
{
/* Construct the error message. */
char buffer[KWSYSPE_PIPE_BUFFER_SIZE];
kwsysProcess_ssize_t result;
strncpy(buffer, strerror(errno), KWSYSPE_PIPE_BUFFER_SIZE);
/* Report the error to the parent through the special pipe. */
kwsysProcess_ssize_t result=write(errorPipe, buffer, strlen(buffer));
result=write(errorPipe, buffer, strlen(buffer));
(void)result;
/* Terminate without cleanup. */