Maybe it will work now?

This commit is contained in:
MissValeska 2014-10-26 08:54:47 -07:00
parent 2c1bdf5990
commit 175f795a2b

View File

@ -1109,8 +1109,6 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
const struct sockaddr * to, socklen_t tolen) const struct sockaddr * to, socklen_t tolen)
{ {
ssize_t err; ssize_t err;
char *ipv4_addr;
size_t maxlen;
if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) { if ((err = sendto(s, msg, len, flags, to, tolen)) == -1) {
switch (errno) { switch (errno) {
case EMSGSIZE: case EMSGSIZE:
@ -1120,11 +1118,9 @@ inet_sendto(int s, const void *msg, size_t len, int flags,
break; break;
case EFAULT: case EFAULT:
error("To Family is: %hu " error("To Family is: %hu "
"To Data is: %s " "To Data is: %%pNP "
"and: %s", to->sa_family, "and: %s", to->sa_family,
inet_ntop(to->sa_family, to->sa_data,
&(((struct sockaddr_in*)to)->sin_addr),
ipv4_addr, maxlen),
strerror(errno)); strerror(errno));
default: default:
error("inet_sendto: Cannot send(): %s", strerror(errno)); error("inet_sendto: Cannot send(): %s", strerror(errno));