summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-11-27 18:35:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-11-27 18:35:01 (GMT)
commitfad0ffac14d573494ecfbd3ce10c2d2cd9028a10 (patch)
tree6c3e314549277204c06eeb4c5172ea6a2abc178f
parent25aa2b69383b9ce72d32d2d21b8a6365dcf81c73 (diff)
downloadhdf5-fad0ffac14d573494ecfbd3ce10c2d2cd9028a10.zip
hdf5-fad0ffac14d573494ecfbd3ce10c2d2cd9028a10.tar.gz
hdf5-fad0ffac14d573494ecfbd3ce10c2d2cd9028a10.tar.bz2
[svn-r4650] Purpose:
Bug fix Description: Fix another typo from today's big "overflow" commit. Platforms tested: Solaris 2.6 (baldric)
-rw-r--r--src/H5FD.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index 9262323..f13e028 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -2069,7 +2069,7 @@ H5FD_read(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t siz
H5_CHECK_OVERFLOW(tempamount_read,hsize_t,size_t);
amount_read = MIN(size, (size_t)tempamount_read);
#else /* NDEBUG */
- amount_read = MIN(size, (size_t)tempamount_read);
+ amount_read = MIN(size, (size_t)(file->accum_size-read_off));
#endif /* NDEBUG */
/* Copy the data out of the buffer */