unix: fix memcpy when copying hints on uv_getaddrinfo

This commit is contained in:
saghul 2011-09-29 01:32:10 +02:00 committed by Ben Noordhuis
parent c9ae7a6f95
commit b594dba248

View File

@ -639,7 +639,7 @@ int uv_getaddrinfo(uv_loop_t* loop,
if (hints) {
handle->hints = malloc(sizeof(struct addrinfo));
memcpy(&handle->hints, hints, sizeof(struct addrinfo));
memcpy(handle->hints, hints, sizeof(struct addrinfo));
}
else {
handle->hints = NULL;