summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-01-28 18:52:53 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-01-28 18:52:53 (GMT)
commit3e601905e38451e5aa003d472fdfb45338d50fe9 (patch)
treef27930c99def09c98fcc73058e5e2fce41536b26 /src
parentc0cfc4421ad7c95c46c2a654f8c06bff8db3588f (diff)
downloadhdf5-3e601905e38451e5aa003d472fdfb45338d50fe9.zip
hdf5-3e601905e38451e5aa003d472fdfb45338d50fe9.tar.gz
hdf5-3e601905e38451e5aa003d472fdfb45338d50fe9.tar.bz2
[svn-r186] Changes since 19980128
---------------------- ./config/conclude.in The maintainer-clean target removes Emacs backup files, mirroring backup and contrib files, core files, and profile output files in addition to what it used to remove. ./src/H5D.c Fixed a buffer allocation bug in the output pipeline. ./src/H5Gnode.c Fixed a comparison against size_t ./test/Makefile.in Added the other temporary h5 files to the `MOSTLYCLEAN' var. ./test/cmpd_dset.c Added four tests for partial I/O. Don't you just love it when something works on the first try!
Diffstat (limited to 'src')
-rw-r--r--src/H5D.c2
-rw-r--r--src/H5Gnode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 460a903..8b88622 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1072,7 +1072,7 @@ H5D_write(H5D_t *dataset, const H5T_t *mem_type, const H5P_t *mem_space,
/*
* Compute the size of the request and allocate scratch buffers.
*/
- nelmts = H5P_get_npoints(dataset->space);
+ nelmts = H5P_get_npoints(mem_space);
#ifndef LATER
/*
* Note: This prototype version allocates a buffer large enough to
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index 5eb24d7..5e6c862 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -758,7 +758,7 @@ H5G_node_insert(H5F_t *f, const haddr_t *addr,
offset = H5H_insert(f, &(bt_udata->heap_addr), HDstrlen(bt_udata->name)+1,
bt_udata->name);
bt_udata->ent.name_off = offset;
- if (offset <= 0) {
+ if (0==offset || (size_t)(-1)==offset) {
HGOTO_ERROR(H5E_SYM, H5E_CANTINSERT, H5B_INS_ERROR,
"unable to insert symbol name into heap");
}