mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 08:05:21 +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 @@ main(int argc, char *argv[]) {
|
||||
exit(1);
|
||||
}
|
||||
INSIST(res->ai_addrlen <= sizeof(sa_auth.type));
|
||||
memcpy(&sa_auth.type, res->ai_addr, res->ai_addrlen);
|
||||
memmove(&sa_auth.type, res->ai_addr, res->ai_addrlen);
|
||||
freeaddrinfo(res);
|
||||
sa_auth.length = res->ai_addrlen;
|
||||
ISC_LINK_INIT(&sa_auth, link);
|
||||
@@ -210,7 +210,7 @@ main(int argc, char *argv[]) {
|
||||
exit(1);
|
||||
}
|
||||
INSIST(res->ai_addrlen <= sizeof(sa_recursive.type));
|
||||
memcpy(&sa_recursive.type, res->ai_addr, res->ai_addrlen);
|
||||
memmove(&sa_recursive.type, res->ai_addr, res->ai_addrlen);
|
||||
freeaddrinfo(res);
|
||||
sa_recursive.length = res->ai_addrlen;
|
||||
ISC_LINK_INIT(&sa_recursive, link);
|
||||
|
Reference in New Issue
Block a user