diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2013-01-22 14:49:47 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2013-01-22 14:49:47 (GMT) |
commit | ff3020dabf666201b98262fc0f786fed1f0acab0 (patch) | |
tree | 812cfc2a67f51d64c3487d30b0dd5135878f3ab4 /tools | |
parent | badedee44d8475964c5235a3435c50f45e148d5e (diff) | |
download | hdf5-ff3020dabf666201b98262fc0f786fed1f0acab0.zip hdf5-ff3020dabf666201b98262fc0f786fed1f0acab0.tar.gz hdf5-ff3020dabf666201b98262fc0f786fed1f0acab0.tar.bz2 |
[svn-r23186] HDFFV-8169: Binary output of String types are wrong
Merge from trunk
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c index dd72284..13a1a26 100644 --- a/tools/lib/h5tools.c +++ b/tools/lib/h5tools.c @@ -1133,7 +1133,7 @@ render_bin_output(FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t } for (i = 0; i < size && (s[i] || pad != H5T_STR_NULLTERM); i++) { HDmemcpy(&tempuchar, &s[i], sizeof(unsigned char)); - if (1 != HDfwrite(&tempuchar, size, 1, stream)) + if (1 != HDfwrite(&tempuchar, sizeof(unsigned char), 1, stream)) H5E_THROW(FAIL, H5E_tools_min_id_g, "fwrite failed"); } /* i */ } /* for (block_index = 0; block_index < block_nelmts; block_index++) */ |