Skip to content

Commit

Permalink
change h_addr to h_addr_list[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 2, 2023
1 parent 615534e commit 4a5c127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDLnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ int SDLNet_ResolveHost(IPaddress *address, const char *host, Uint16 port)

hp = gethostbyname(host);
if ( hp ) {
SDL_memcpy(&address->host,hp->h_addr,hp->h_length);
SDL_memcpy(&address->host,hp->h_addr_list[0],hp->h_length);
} else {
retval = -1;
}
Expand Down

0 comments on commit 4a5c127

Please sign in to comment.