Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: fix memcpy when copying hints on uv_getaddrinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul authored and bnoordhuis committed Sep 29, 2011
1 parent c9ae7a6 commit b594dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/core.c
Expand Up @@ -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;
Expand Down

0 comments on commit b594dba

Please sign in to comment.