Skip to content

Commit 3f5bab2

Browse files
committed
fix inet_ntoa
1 parent 7d9fa2b commit 3f5bab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unix.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ enet_address_get_host_ip (const ENetAddress * address, char * name, size_t nameL
136136
#ifdef HAS_INET_NTOP
137137
if (inet_ntop (AF_INET6, & address -> host, name, nameLength) == NULL)
138138
#else
139-
char * addr = inet_ntoa (* (struct in6_addr *) & address -> host);
139+
char * addr = inet_ntoa (* (struct in_addr *) & address -> host);
140140
if (addr != NULL)
141141
{
142142
size_t addrLen = strlen(addr);

0 commit comments

Comments
 (0)