summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_util.c
diff options
context:
space:
mode:
authorLeon Arber <larber@ncsa.uiuc.edu>2005-04-25 19:15:22 (GMT)
committerLeon Arber <larber@ncsa.uiuc.edu>2005-04-25 19:15:22 (GMT)
commitb3c8b2f846cc16b45a61783ca6b9d3247f8ed61c (patch)
treef57f861cc47116a3dcbbbf7608cd2239bdf44047 /tools/lib/h5diff_util.c
parent0ae785b76beb31410fe63556a8fd32a50de68064 (diff)
downloadhdf5-b3c8b2f846cc16b45a61783ca6b9d3247f8ed61c.zip
hdf5-b3c8b2f846cc16b45a61783ca6b9d3247f8ed61c.tar.gz
hdf5-b3c8b2f846cc16b45a61783ca6b9d3247f8ed61c.tar.bz2
[svn-r10659] Purpose:
Optimization Description: removed an unncessary memset call. Solution: Platforms tested: heping (pp), sol (pp) Misc. update:
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)