mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 09:05:40 +00:00
[master] replace memcpy() with memmove().
3698. [cleanup] Replaced all uses of memcpy() with memmove(). [RT #35120]
This commit is contained in:
@@ -188,7 +188,7 @@ isc_string_regiondup(isc_mem_t *mctx, const isc_region_t *source) {
|
||||
|
||||
target = (char *) isc_mem_allocate(mctx, source->length + 1);
|
||||
if (target != NULL) {
|
||||
memcpy(source->base, target, source->length);
|
||||
memmove(source->base, target, source->length);
|
||||
target[source->length] = '\0';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user