summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-09-02 03:11:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-09-02 03:11:25 (GMT)
commit3eea9abb5fb030d87519a3b9743f6a467e4a830a (patch)
treeddf316fe12e996e2e4ea537f53d4e3e4463858e2 /src/H5FD.c
parent90103afad6237862caa8fe02e80c57d9515e2b30 (diff)
downloadhdf5-3eea9abb5fb030d87519a3b9743f6a467e4a830a.zip
hdf5-3eea9abb5fb030d87519a3b9743f6a467e4a830a.tar.gz
hdf5-3eea9abb5fb030d87519a3b9743f6a467e4a830a.tar.bz2
[svn-r11338] Purpose:
Bug fix Description: Check in fix that John found for bug in H5FD_extend() code - adjust beginning as well as size of free block when "extending" another block of space in the file. Platforms tested: FreeBsd 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5FD.c')
-rw-r--r--src/H5FD.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index 6474446..8d152ec 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -2803,8 +2803,10 @@ H5FD_extend(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size, hsize_t e
/* Free the memory for the used block */
H5FL_FREE(H5FD_free_t, curr);
} /* end if */
- else
+ else {
+ curr->addr += extra_requested;
curr->size -= extra_requested;
+ } /* end else */
/* Leave now */
break;