[master] replace memcpy() with memmove().
3698. [cleanup] Replaced all uses of memcpy() with memmove(). [RT #35120]
This commit is contained in:
@@ -221,7 +221,7 @@ main(int argc, char *argv[]) {
|
||||
exit(1);
|
||||
}
|
||||
INSIST(res->ai_addrlen <= sizeof(sa.type));
|
||||
memcpy(&sa.type, res->ai_addr, res->ai_addrlen);
|
||||
memmove(&sa.type, res->ai_addr, res->ai_addrlen);
|
||||
freeaddrinfo(res);
|
||||
sa.length = res->ai_addrlen;
|
||||
ISC_LINK_INIT(&sa, link);
|
||||
|
||||
Reference in New Issue
Block a user