From 175f795a2bc8bec7a85774d7748319f3959d2629 Mon Sep 17 00:00:00 2001 From: MissValeska Date: Sun, 26 Oct 2014 08:54:47 -0700 Subject: [PATCH] Maybe it will work now? --- src/inet.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/inet.c b/src/inet.c index 1ac234e..6978fa5 100644 --- a/src/inet.c +++ b/src/inet.c @@ -1109,8 +1109,6 @@ inet_sendto(int s, const void *msg, size_t len, int flags, const struct sockaddr * to, socklen_t tolen) { ssize_t err; - char *ipv4_addr; - size_t maxlen; if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) { switch (errno) { case EMSGSIZE: @@ -1120,11 +1118,9 @@ inet_sendto(int s, const void *msg, size_t len, int flags, break; case EFAULT: error("To Family is: %hu " - "To Data is: %s " + "To Data is: %%pNP " "and: %s", to->sa_family, - inet_ntop(to->sa_family, - &(((struct sockaddr_in*)to)->sin_addr), - ipv4_addr, maxlen), + to->sa_data, strerror(errno)); default: error("inet_sendto: Cannot send(): %s", strerror(errno));