summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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) {