summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/pipe/osl_Pipe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx
index 9f1ae6e3db4b..9f04b503014f 100644
--- a/sal/qa/osl/pipe/osl_Pipe.cxx
+++ b/sal/qa/osl/pipe/osl_Pipe.cxx
@@ -766,6 +766,7 @@ namespace osl_StreamPipe
printf("read failed! \n");
return;
}
+ buf[sizeof(buf)-1] = '\0';
printf("buffer is %s \n", buf);
printf("send\n");
nChars = aSenderPipe.send( m_pTestString2.getStr(), m_pTestString2.getLength() + 1 );
@@ -829,6 +830,7 @@ namespace osl_StreamPipe
printf("server receive failed! \n");
return;
}
+ buf[sizeof(buf)-1] = '\0';
printf("received message is: %s\n", buf );
}
}