diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-05-15 16:56:23 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-05-15 16:56:23 (GMT) |
commit | 26780517e6e55f8f3d049a148251b0811332e01f (patch) | |
tree | 4d46d5261a489989d24f5d3665217beb305253fc /src/H5Tref.c | |
parent | 15f7ab354602bae26546027ba058eacd31ce0002 (diff) | |
parent | ae07c9ba2429a9c49291bcd9f02c0ce36b0a60ce (diff) | |
download | hdf5-26780517e6e55f8f3d049a148251b0811332e01f.zip hdf5-26780517e6e55f8f3d049a148251b0811332e01f.tar.gz hdf5-26780517e6e55f8f3d049a148251b0811332e01f.tar.bz2 |
Merge pull request #2573 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor to develop
* commit 'ae07c9ba2429a9c49291bcd9f02c0ce36b0a60ce':
Replaced a few calls to HDmemcpy with H5MM_memcpy, which does overlap checking.
Removed HDgets macros since gets was deprecated in C99 and removed in C11 (gets() is not used in our repo).
Diffstat (limited to 'src/H5Tref.c')
-rw-r--r-- | src/H5Tref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Tref.c b/src/H5Tref.c index f97b78a..b357baa 100644 --- a/src/H5Tref.c +++ b/src/H5Tref.c @@ -800,7 +800,7 @@ H5T__ref_disk_read(H5VL_object_t *src_file, const void *src_buf, size_t H5_ATTR_ HDassert(dst_size); /* Copy header manually */ - HDmemcpy(q, p, H5R_ENCODE_HEADER_SIZE); + H5MM_memcpy(q, p, H5R_ENCODE_HEADER_SIZE); p += H5R_ENCODE_HEADER_SIZE; q += H5R_ENCODE_HEADER_SIZE; blob_size -= H5R_ENCODE_HEADER_SIZE; @@ -860,7 +860,7 @@ H5T__ref_disk_write(H5VL_object_t H5_ATTR_UNUSED *src_file, const void *src_buf, } /* end if */ /* Copy header manually so that it does not get encoded into the blob */ - HDmemcpy(q, p, H5R_ENCODE_HEADER_SIZE); + H5MM_memcpy(q, p, H5R_ENCODE_HEADER_SIZE); p += H5R_ENCODE_HEADER_SIZE; q += H5R_ENCODE_HEADER_SIZE; src_size -= H5R_ENCODE_HEADER_SIZE; |