summaryrefslogtreecommitdiffstats
path: root/src/H5Gname.c
diff options
context:
space:
mode:
authorChristian Chilan <chilan@hdfgroup.org>2007-04-27 19:04:32 (GMT)
committerChristian Chilan <chilan@hdfgroup.org>2007-04-27 19:04:32 (GMT)
commit55ba7924e1bd7bef5fa0b8bf8b67f4bdce94a9b7 (patch)
treef731edb414224c1b2096a23c0b1cf8d22e3ff7f2 /src/H5Gname.c
parent2b807f7fddc631d32bf324df654eb4db6c795233 (diff)
downloadhdf5-55ba7924e1bd7bef5fa0b8bf8b67f4bdce94a9b7.zip
hdf5-55ba7924e1bd7bef5fa0b8bf8b67f4bdce94a9b7.tar.gz
hdf5-55ba7924e1bd7bef5fa0b8bf8b67f4bdce94a9b7.tar.bz2
[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.
Diffstat (limited to 'src/H5Gname.c')
-rw-r--r--src/H5Gname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Gname.c b/src/H5Gname.c
index 39b1f14..8a00736 100644
--- a/src/H5Gname.c
+++ b/src/H5Gname.c
@@ -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) {