diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-10-30 20:24:19 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-10-30 20:24:19 (GMT) |
commit | c19a43d85474fc21308cb3e5e59dbc535edf4174 (patch) | |
tree | 0a269c5f1be8e1c2d5cf3fc9de437d9d2cda8b4f /tools/lib | |
parent | 780fefb82913150a4f95ca25e8d72758e764dbad (diff) | |
download | hdf5-c19a43d85474fc21308cb3e5e59dbc535edf4174.zip hdf5-c19a43d85474fc21308cb3e5e59dbc535edf4174.tar.gz hdf5-c19a43d85474fc21308cb3e5e59dbc535edf4174.tar.bz2 |
[svn-r12831] Changed the API for "unpacking" an external link value to take the size of
the linkval buffer, per Elena and Frank's suggestions while revising
the documentation. Added error checking using this size, as well as a
couple of tests.
Tested on juniper, kagiso, and sol.
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5trav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/h5trav.c b/tools/lib/h5trav.c index 8a6173c..8480f57 100644 --- a/tools/lib/h5trav.c +++ b/tools/lib/h5trav.c @@ -521,7 +521,7 @@ static int traverse( hid_t loc_id, targbuf = HDmalloc(statbuf.linklen); assert(targbuf); H5Gget_linkval(loc_id,path,statbuf.linklen,targbuf); - H5Lunpack_elink_val(targbuf, NULL, &objname); + H5Lunpack_elink_val(targbuf, statbuf.linklen, NULL, &objname); if (print) printf(" %-10s %s -> %s %s\n", "ext link", path, targbuf, objname); free(targbuf); |