diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-10-30 00:17:15 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-10-30 00:17:15 (GMT) |
commit | 16eab69bcd5219bef52cf9de88d8e1fa7557fc48 (patch) | |
tree | 739e0191f643014517e8e556f97d26603d819cb2 /src/H5FDsplitter.c | |
parent | 6c0f954d683142e123baa4d48f5a69d5e20aa11d (diff) | |
download | hdf5-16eab69bcd5219bef52cf9de88d8e1fa7557fc48.zip hdf5-16eab69bcd5219bef52cf9de88d8e1fa7557fc48.tar.gz hdf5-16eab69bcd5219bef52cf9de88d8e1fa7557fc48.tar.bz2 |
Replaces C std library calls with H5MM equivalents
Mostly H5MM_memcpy in newer VFDs
Diffstat (limited to 'src/H5FDsplitter.c')
-rw-r--r-- | src/H5FDsplitter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5FDsplitter.c b/src/H5FDsplitter.c index 698ae7e..6ecafe0 100644 --- a/src/H5FDsplitter.c +++ b/src/H5FDsplitter.c @@ -585,7 +585,7 @@ H5FD__splitter_fapl_copy(const void *_old_fa) if (NULL == new_fa_ptr) HGOTO_ERROR(H5E_VFL, H5E_CANTALLOC, NULL, "unable to allocate log file FAPL") - HDmemcpy(new_fa_ptr, old_fa_ptr, sizeof(H5FD_splitter_fapl_t)); + H5MM_memcpy(new_fa_ptr, old_fa_ptr, sizeof(H5FD_splitter_fapl_t)); HDstrncpy(new_fa_ptr->wo_path, old_fa_ptr->wo_path, H5FD_SPLITTER_PATH_MAX); HDstrncpy(new_fa_ptr->log_file_path, old_fa_ptr->log_file_path, H5FD_SPLITTER_PATH_MAX); @@ -1300,14 +1300,14 @@ H5FD__splitter_log_error(const H5FD_splitter_t *file, const char *atfunc, const char * s; size = HDstrlen(atfunc) + HDstrlen(msg) + 3; /* ':', ' ', '\n' */ - s = (char *)HDmalloc(sizeof(char) * (size + 1)); + s = (char *)H5MM_malloc(sizeof(char) * (size + 1)); if (NULL == s) ret_value = FAIL; else if (size < (size_t)HDsnprintf(s, size + 1, "%s: %s\n", atfunc, msg)) ret_value = FAIL; else if (size != HDfwrite(s, 1, size, file->logfp)) ret_value = FAIL; - HDfree(s); + H5MM_free(s); } FUNC_LEAVE_NOAPI(ret_value) |