From 7b05c32ad91460a645a6a2f9eb23d1fa87cc0c17 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 15 Jul 2016 17:43:59 +0200 Subject: [PATCH] src/h5core/private/h5_attrib.h - get_attrib_info(): wrong length was return for string attributes --- src/h5core/private/h5_attribs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/h5core/private/h5_attribs.h b/src/h5core/private/h5_attribs.h index cf6317c..92e9d8a 100644 --- a/src/h5core/private/h5_attribs.h +++ b/src/h5core/private/h5_attribs.h @@ -153,9 +153,9 @@ get_attrib_info ( ) { H5_INLINE_FUNC_ENTER (h5_err_t); hid_t datatype_id; - TRY (datatype_id = h5priv_get_normalized_attribute_type (attrib_id)); + TRY (datatype_id = hdf5_get_attribute_type (attrib_id)); if (attrib_nelem) { - if (datatype_id == H5_STRING) { + if (h5priv_normalize_type (datatype_id) == H5_STRING) { *attrib_nelem = H5Tget_size (datatype_id); } else { hid_t space_id;