aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.c b/src/Utils.c
index 95110b4..22cbe70 100644
--- a/src/Utils.c
+++ b/src/Utils.c
@@ -82,7 +82,7 @@ CCTK_FILEVERSION(CactusConnect_Socket_Utils_c)
host_entry = gethostbyname (hostname); \
if (host_entry) \
{ \
- memcpy (&sin_addr, host_entry->h_addr, host_entry->h_length); \
+ memcpy (&sin_addr, host_entry->h_addr_list[0], host_entry->h_length); \
} \
else \
{ \