summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1999-08-25 20:31:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1999-08-25 20:31:12 (GMT)
commita92c1a7f2cd831a866dd81fe69e0034bfa9338f8 (patch)
treed6525f78d89331a3c2cdceaefdf03c301551f635
parentbf54eff7ffae82e36f803f8cc39bd0623c8696ef (diff)
downloadhdf5-a92c1a7f2cd831a866dd81fe69e0034bfa9338f8.zip
hdf5-a92c1a7f2cd831a866dd81fe69e0034bfa9338f8.tar.gz
hdf5-a92c1a7f2cd831a866dd81fe69e0034bfa9338f8.tar.bz2
[svn-r1597] Extended space for string read in.
-rw-r--r--examples/h5_attribute.c2
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);