Copy into the correct destination.
diff --git a/src/posix.c b/src/posix.c
index de9181a..c7201ba 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -66,7 +66,7 @@ int p_getaddrinfo(
p_freeaddrinfo(ainfo);
return -1;
}
- memcpy(&ai->ai_next, ainfo, sizeof(struct addrinfo));
+ memcpy(ai->ai_next, ainfo, sizeof(struct addrinfo));
memcpy(&ai->ai_next->ai_addr_in.sin_addr,
ainfo->ai_hostent->h_addr_list[p],
ainfo->ai_hostent->h_length);