Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

unix: fix memcpy when copying hints on uv_getaddrinfo

  • Loading branch information...
saghul authored and bnoordhuis committed Sep 28, 2011
1 parent c9ae7a6 commit b594dba2484296ed548e37e29157fe9572da2b72
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/unix/core.c
@@ -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;

0 comments on commit b594dba

Please sign in to comment.
You can’t perform that action at this time.