diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-06-19 21:49:01 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-06-19 21:49:01 (GMT) |
commit | 1fdcafdc893c22fd61b85b22c4b53c76a9090fd1 (patch) | |
tree | 5593a43ac8c9e363bdb31b45b7f159da9e42a4e1 /src/H5T.c | |
parent | 09676ded1f6e9480e5154c8dcdf6a0226755d28b (diff) | |
download | hdf5-1fdcafdc893c22fd61b85b22c4b53c76a9090fd1.zip hdf5-1fdcafdc893c22fd61b85b22c4b53c76a9090fd1.tar.gz hdf5-1fdcafdc893c22fd61b85b22c4b53c76a9090fd1.tar.bz2 |
[svn-r4022] Purpose:
Code Cleanup
Description:
Changed POSIX function calls to the HD* way of doing things. Checked
with checkposix and tested on Linux.
Platforms tested:
Linux
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6221,7 +6221,7 @@ H5T_enum_nameof(H5T_t *dt, void *value, char *name/*out*/, size_t size) } /* Save result name */ - if (!name && NULL==(name=H5MM_malloc(strlen(dt->u.enumer.name[md])+1))) { + if (!name && NULL==(name=H5MM_malloc(HDstrlen(dt->u.enumer.name[md])+1))) { HRETURN_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); } @@ -6805,10 +6805,10 @@ H5T_path_find(const H5T_t *src, const H5T_t *dst, const char *name, "memory allocation failed for type conversion path"); } if (name && *name) { - strncpy(path->name, name, H5T_NAMELEN); + HDstrncpy(path->name, name, H5T_NAMELEN); path->name[H5T_NAMELEN-1] = '\0'; } else { - strcpy(path->name, "NONAME"); + HDstrcpy(path->name, "NONAME"); } if ((src && NULL==(path->src=H5T_copy(src, H5T_COPY_ALL))) || (dst && NULL==(path->dst=H5T_copy(dst, H5T_COPY_ALL)))) { |