diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2010-05-03 18:25:18 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2010-05-03 18:25:18 (GMT) |
commit | 4f171f2b2101068665afe705de819afdd7dbd6ff (patch) | |
tree | 13309467dc24b68b92f9127e24789d5c3ee69f96 | |
parent | 7cdb95c5c22166dbe04fdf8078b55c2915d71c4e (diff) | |
download | hdf5-4f171f2b2101068665afe705de819afdd7dbd6ff.zip hdf5-4f171f2b2101068665afe705de819afdd7dbd6ff.tar.gz hdf5-4f171f2b2101068665afe705de819afdd7dbd6ff.tar.bz2 |
[svn-r18693] Description:
Using header file H5private.h for HDstrcpy in H5CommonFG.cpp.
Platforms tested:
Linux/32 2.6 (jam)
FreeBSD/32 6.3 (duty)
-rw-r--r-- | c++/src/H5CommonFG.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/c++/src/H5CommonFG.cpp b/c++/src/H5CommonFG.cpp index a86d1ab..2c6951c 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: { |