From 227a351e4758ffb0af9882b00831ad6cf1acff3b Mon Sep 17 00:00:00 2001 From: Neil Fortner Date: Thu, 15 Apr 2010 14:20:57 -0500 Subject: [svn-r18567] Purpose: Fix error in call to memmove() in H5B_remove_helper. This error was only reproducible through the use of electric fence. Tested: Fedora (too minor for h5committest) --- src/H5B.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5B.c b/src/H5B.c index fa892a9..278d689 100644 --- a/src/H5B.c +++ b/src/H5B.c @@ -1511,7 +1511,7 @@ H5B_remove_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type HDmemmove(bt->child + idx, bt->child + idx + 1, - (bt->nchildren - idx) * sizeof(haddr_t)); + (bt->nchildren - 1 - idx) * sizeof(haddr_t)); bt->nchildren -= 1; bt_flags |= H5AC__DIRTIED_FLAG; -- cgit v0.12