[svn-r1597] Extended space for string read in.

This commit is contained in:
Quincey Koziol 1999-08-25 15:31:12 -05:00
parent bf54eff7ff
commit a92c1a7f2c

View File

@ -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);