diff options
Diffstat (limited to 'libmpdemux/network.c')
-rw-r--r-- | libmpdemux/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c index c6f920d554..4040e2aa37 100644 --- a/libmpdemux/network.c +++ b/libmpdemux/network.c @@ -199,7 +199,7 @@ connect2Server_with_af(char *host, int port, int af,int verb) { return -2; } - memcpy( our_s_addr, (void*)hp->h_addr, hp->h_length ); + memcpy( our_s_addr, (void*)hp->h_addr_list[0], hp->h_length ); } #ifdef HAVE_WINSOCK2 else { |