mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
[master] replace memcpy() with memmove().
3698. [cleanup] Replaced all uses of memcpy() with memmove(). [RT #35120]
This commit is contained in:
@@ -292,8 +292,8 @@ dns_acl_merge(dns_acl_t *dest, dns_acl_t *source, isc_boolean_t pos)
|
||||
return (ISC_R_NOMEMORY);
|
||||
|
||||
/* Copy in the original elements */
|
||||
memcpy(newmem, dest->elements,
|
||||
dest->length * sizeof(dns_aclelement_t));
|
||||
memmove(newmem, dest->elements,
|
||||
dest->length * sizeof(dns_aclelement_t));
|
||||
|
||||
/* Release the memory for the old elements array */
|
||||
isc_mem_put(dest->mctx, dest->elements,
|
||||
|
Reference in New Issue
Block a user