From e8d0919d43fe2a8a4d1aa2984d97d6e8d12a4b7d Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Tue, 13 Aug 2013 12:48:57 -0500 Subject: [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 --- tools/h5dump/h5dump_ddl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12