From a92c1a7f2cd831a866dd81fe69e0034bfa9338f8 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 25 Aug 1999 15:31:12 -0500 Subject: [svn-r1597] Extended space for string read in. --- examples/h5_attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12