diff options
author | Sebastian Bauer <mail@sebastianbauer.info> | 2015-12-31 11:13:21 +0100 |
---|---|---|
committer | Sebastian Bauer <mail@sebastianbauer.info> | 2015-12-31 14:52:32 +0100 |
commit | 9f9df4b6e05cc5950953177a1cb48739f1ddfc29 (patch) | |
tree | b0eee750f1495f22097074108e6ed2d9f281f790 /src/posix.c | |
parent | ea5942b4cfb56eeb7375e3af2ec76545f551b4df (diff) | |
download | libgit2-9f9df4b6e05cc5950953177a1cb48739f1ddfc29.tar.gz |
Copy into the correct destination.
Diffstat (limited to 'src/posix.c')
-rw-r--r-- | src/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c index de9181a42..c7201ba14 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); |