summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-05-02 18:56:32 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-05-02 18:56:32 (GMT)
commit84d5daad4faa490f541aa87aa2b8ce8dd047cfce (patch)
treecf90fe5db2f277c54503554281d43240621c89ae /src/H5O.c
parent5979d5776fe92998fe07768aa070c76f75459324 (diff)
downloadhdf5-84d5daad4faa490f541aa87aa2b8ce8dd047cfce.zip
hdf5-84d5daad4faa490f541aa87aa2b8ce8dd047cfce.tar.gz
hdf5-84d5daad4faa490f541aa87aa2b8ce8dd047cfce.tar.bz2
[svn-r5326]
Purpose: code clean-up Description: Many warnings are generated on windows due to seemingly large-size data type converting to small-size data type, 1.5 branch has been cleaned up, make 1.4 catch up with 1.5. Solution: If meeting with the break-up of the current tests on other platforms, will resume the previous one Platforms tested: windows 2000, linux 2.2.18
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 5636c6c..06410f1 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -383,6 +383,7 @@ H5O_load(H5F_t *f, haddr_t addr, const void UNUSED *_udata1,
/* read fixed-lenth part of object header */
hdr_size = H5O_SIZEOF_HDR(f);
+ assert(hdr_size<=sizeof(buf));
if (H5F_block_read(f, H5FD_MEM_OHDR, addr, hdr_size, H5P_DEFAULT, buf) < 0) {
HGOTO_ERROR(H5E_OHDR, H5E_READERROR, NULL,
"unable to read object header");