diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_attribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c index 23632ca..fd41b0d 100644 --- a/examples/h5_attribute.c +++ b/examples/h5_attribute.c @@ -174,7 +174,7 @@ main (void) */ attr = H5Aopen_idx(dataset, 2); atype = H5Tcopy(H5T_C_S1); - H5Tset_size(atype, 4); + H5Tset_size(atype, 5); ret = H5Aread(attr, atype, string_out); printf("The value of the attribute with the index 2 is %s \n", string_out); ret = H5Aclose(attr); |