summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2010-05-03 17:47:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2010-05-03 17:47:39 (GMT)
commit4c0421ba76a7615cc02f43b8f3778f5d6a1f4d68 (patch)
treeb18ab57a7519414629d1539cea5d018d2adc75bd /c++/src/H5CommonFG.cpp
parent8cd42a8925938657f10dfa28d69dd289adba4daf (diff)
downloadhdf5-4c0421ba76a7615cc02f43b8f3778f5d6a1f4d68.zip
hdf5-4c0421ba76a7615cc02f43b8f3778f5d6a1f4d68.tar.gz
hdf5-4c0421ba76a7615cc02f43b8f3778f5d6a1f4d68.tar.bz2
[svn-r18692] Description:
Using header file H5private.h for HDstrcpy in H5CommonFG.cpp. Platforms tested: Linux/32 2.6 (jam) FreeBSD/32 6.3 (duty)
Diffstat (limited to 'c++/src/H5CommonFG.cpp')
-rw-r--r--c++/src/H5CommonFG.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp
index 7748963..5b93bd5 100644
--- a/c++/src/H5CommonFG.cpp
+++ b/c++/src/H5CommonFG.cpp
@@ -31,6 +31,7 @@
#include "H5DataSet.h"
#include "H5File.h"
#include "H5Alltypes.h"
+#include "H5private.h" // for HDstrcpy
// There are a few comments that are common to most of the functions
// defined in this file so they are listed here.
@@ -1124,10 +1125,10 @@ H5G_obj_t CommonFG::getObjTypeByIdx(hsize_t idx, char* type_name) const
H5G_obj_t obj_type = H5Gget_objtype_by_idx(getLocId(), idx);
switch (obj_type)
{
- case H5G_LINK: strcpy(type_name, "symbolic link"); break;
- case H5G_GROUP: strcpy(type_name, "group"); break;
- case H5G_DATASET: strcpy(type_name, "dataset"); break;
- case H5G_TYPE: strcpy(type_name, "datatype"); break;
+ case H5G_LINK: HDstrcpy(type_name, "symbolic link"); break;
+ case H5G_GROUP: HDstrcpy(type_name, "group"); break;
+ case H5G_DATASET: HDstrcpy(type_name, "dataset"); break;
+ case H5G_TYPE: HDstrcpy(type_name, "datatype"); break;
case H5G_UNKNOWN:
default:
{