summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5diff_util.c')
-rw-r--r--tools/lib/h5diff_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5diff_util.c b/tools/lib/h5diff_util.c
index 3f96434..4f1e97c 100644
--- a/tools/lib/h5diff_util.c
+++ b/tools/lib/h5diff_util.c
@@ -59,8 +59,8 @@ void parallel_print(const char* format, ...)
if((bytes_written+1) == (OUTBUFF_SIZE-outBuffOffset))
#endif
{
- /* Delete the characters that were written to outBuff since they will be written to the overflow_file */
- memset(outBuff+outBuffOffset, 0, OUTBUFF_SIZE - outBuffOffset);
+ /* Terminate the outbuff at the end of the previous output */
+ outBuff[outBuffOffset] = '\0';
overflow_file = HDtmpfile();
if(overflow_file == NULL)