From 247d4895e902b02df0565b0f546e731249478ac4 Mon Sep 17 00:00:00 2001 From: MissValeska Date: Sun, 26 Oct 2014 09:39:25 -0700 Subject: [PATCH] it should finally be fixed. --- src/inet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inet.c b/src/inet.c index b20cad6..074e476 100644 --- a/src/inet.c +++ b/src/inet.c @@ -1117,11 +1117,13 @@ inet_sendto(int s, const void *msg, size_t len, int flags, len-(len/2), flags, to, tolen); break; case EFAULT: + /* Must be modified to accept IPv6 addresses + * when IPv6 support is activated. */ error("Bad Address\n" "To Family is: %hu " "To Data is: %s", to->sa_family, - inet_ntoa( &( ((struct sockaddr_in*)to)->sin_addr ) )); + inet_ntoa( ( ((struct sockaddr_in*)to)->sin_addr ) )); default: error("inet_sendto: Cannot send(): %s", strerror(errno)); return err;