summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2007-01-26 05:34:10 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2007-01-26 05:34:10 (GMT)
commit134352c456b2952f192e74ed3e87fb72a2d9bbd8 (patch)
treedc0a3bfe64e0a7b3a03d676c19e9f06b888d204e /c++/src/H5CommonFG.cpp
parent73b8819a42503e55c5c82fa478bdc2870b709deb (diff)
downloadhdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.zip
hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.tar.gz
hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.tar.bz2
[svn-r13200] Purpose: Adding wrappers and fixing a bug
Description: - Added overloaded function DataType::copy to take a DataSet - Added overloaded DataType::commit - Fixed bugzilla 797 - Fixed a warning in DataSpace::operator= - Set PropList parameter to default in DataType::convert Platforms tested AIX 5.1 (copper) SunOS 5.8 64-bit (sol) HPUX 11.00 (kelgia)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r--c++/src/H5CommonFG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index cad625a..0d29b6c 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -983,8 +983,8 @@ H5std_string CommonFG::getObjnameByIdx(hsize_t idx) const
}
// now, allocate C buffer to get the name
- char* name_C = new char[name_len];
- name_len = H5Gget_objname_by_idx(getLocId(), idx, name_C, name_len);
+ char* name_C = new char[name_len+1];
+ name_len = H5Gget_objname_by_idx(getLocId(), idx, name_C, name_len+1);
// clean up and return the string
H5std_string name = H5std_string(name_C);