From d8c84a3bff9b9ea0af06773fa5784876985adaa3 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 30 Jun 2011 09:13:52 +0000 Subject: [PATCH] bugfix in read function --- src/h5core/h5u_readwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h5core/h5u_readwrite.c b/src/h5core/h5u_readwrite.c index 46d6c51..e9b864c 100644 --- a/src/h5core/h5u_readwrite.c +++ b/src/h5core/h5u_readwrite.c @@ -36,7 +36,7 @@ h5u_read_data ( TRY (ndisk = hdf5_get_npoints_of_dataspace (space_id)); if (u->diskshape != H5S_ALL) { - TRY (nread = hdf5_get_npoints_of_dataspace(u->diskshape)); + TRY (nread = hdf5_get_selected_npoints_of_dataspace (u->diskshape)); /* make sure the disk space selected by the view doesn't * exceed the size of the dataset */