summaryrefslogtreecommitdiffstats
path: root/src/H5Oattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Oattr.c')
-rw-r--r--src/H5Oattr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/H5Oattr.c b/src/H5Oattr.c
index eaa80ba..8665e11 100644
--- a/src/H5Oattr.c
+++ b/src/H5Oattr.c
@@ -149,7 +149,7 @@ H5O_attr_decode(H5F_t *f, const uint8 *p, H5O_shared_t __unused__ *sh)
p += H5O_ALIGN(attr->ds_size);
/* Compute the size of the data */
- attr->data_size=H5S_extent_npoints(attr->ds)*H5T_get_size(attr->dt);
+ attr->data_size=H5S_get_simple_extent_npoints(attr->ds)*H5T_get_size(attr->dt);
/* Go get the data */
if (NULL==(attr->data = H5MM_malloc(attr->data_size))) {
@@ -433,4 +433,3 @@ H5O_attr_debug(H5F_t *f, const void *_mesg, FILE * stream, intn indent,
FUNC_LEAVE(SUCCEED);
}
-