mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r13704] Change to H5G_get_refobj_name so that H5I_get_name returns the length of the name of a dereferenced object without counting the null terminator. Tested on smirom, copper, and cobalt.
This commit is contained in:
parent
2b807f7fdd
commit
55ba7924e1
@ -1236,7 +1236,7 @@ H5G_get_refobj_name(hid_t file, hid_t dxpl_id, const H5O_loc_t *loc,
|
||||
HGOTO_ERROR(H5E_SYM, H5E_BADITER, FAIL, "group iteration failed while looking for object name")
|
||||
else if(status > 0) {
|
||||
/* Set the length of the full path */
|
||||
ret_value = HDstrlen(udata.container) + 1;
|
||||
ret_value = HDstrlen(udata.container);
|
||||
|
||||
/* If there's a buffer provided, copy into it, up to the limit of its size */
|
||||
if(name) {
|
||||
|
Loading…
Reference in New Issue
Block a user