summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-08-13 17:48:57 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-08-13 17:48:57 (GMT)
commite8d0919d43fe2a8a4d1aa2984d97d6e8d12a4b7d (patch)
tree561439b48cd0e6814073ce9589d52b5119c870f5 /tools/h5dump
parent4935d0bfab430ba1b374fb600216ec34075442fe (diff)
downloadhdf5-e8d0919d43fe2a8a4d1aa2984d97d6e8d12a4b7d.zip
hdf5-e8d0919d43fe2a8a4d1aa2984d97d6e8d12a4b7d.tar.gz
hdf5-e8d0919d43fe2a8a4d1aa2984d97d6e8d12a4b7d.tar.bz2
[svn-r24002] Fix 32-bit and valgrind issues with new handle_paths code - correct math of adding a NULL to a string.
Tested: local linux (valgrind) and h5committest
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump_ddl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5dump/h5dump_ddl.c b/tools/h5dump/h5dump_ddl.c
index d46cb56..765cee4 100644
--- a/tools/h5dump/h5dump_ddl.c
+++ b/tools/h5dump/h5dump_ddl.c
@@ -1415,7 +1415,7 @@ lnk_search(const char *path, const H5L_info_t *li, void *_op_data)
}
else
HDstrncpy(search_name, op_name, (size_t)search_len + 1);
- search_name[search_len + k] = '\0';
+ search_name[search_len + k - 1] = '\0';
if(HDstrcmp(path, search_name) == 0) {
switch(li->type) {