SDL_net: change h_addr to h_addr_list[0] (4a5c1)

From 4a5c127c9b297c7e710e207c568e8974512c16dc Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 2 Oct 2023 20:22:50 +0300
Subject: [PATCH] change h_addr to h_addr_list[0]

---
 src/SDLnet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDLnet.c b/src/SDLnet.c
index 7d0223e..68ed8b6 100644
--- a/src/SDLnet.c
+++ b/src/SDLnet.c
@@ -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;
             }