diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-02-04 20:35:25 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-02-04 20:35:25 (GMT) |
commit | 89a47692e9d14798dd2e7506a34f74810c1259dc (patch) | |
tree | a9fd7dcda8baeca8c611f7f0ea312f6a84a1b73e /tools/h5dump/h5dumpgentest.c | |
parent | ba13827093c38cb9d87ae87e59d47a34415c88cb (diff) | |
download | hdf5-89a47692e9d14798dd2e7506a34f74810c1259dc.zip hdf5-89a47692e9d14798dd2e7506a34f74810c1259dc.tar.gz hdf5-89a47692e9d14798dd2e7506a34f74810c1259dc.tar.bz2 |
[svn-r20044] Fix bz2127 by dynamically allocating storgae for comments.
Tested: local linux
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index 7701651..8401000 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -3400,6 +3400,11 @@ gent_group_comments(void) H5Oset_comment_by_name(group, "/g2/g2.1/g2.1.3", "Comment for group /g2/g2.1/g2.1.3", H5P_DEFAULT); H5Gclose(group); + /* /glongcomment */ + group = H5Gcreate2(fid, "/glongcomment", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); + H5Oset_comment_by_name(group, "/glongcomment", "Comment for group /glongcomment with a really, really, really long, long, long comment", H5P_DEFAULT); + H5Gclose(group); + H5Fclose(fid); } |