summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2010-04-15 19:20:57 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2010-04-15 19:20:57 (GMT)
commit227a351e4758ffb0af9882b00831ad6cf1acff3b (patch)
tree6384cb5e6d0faf0bca81c27495468d5e0a6c11aa
parent13a6885db3c1dbc844334d076bb813f742378244 (diff)
downloadhdf5-227a351e4758ffb0af9882b00831ad6cf1acff3b.zip
hdf5-227a351e4758ffb0af9882b00831ad6cf1acff3b.tar.gz
hdf5-227a351e4758ffb0af9882b00831ad6cf1acff3b.tar.bz2
[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)
-rw-r--r--src/H5B.c2
1 files changed, 1 insertions, 1 deletions
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;