diff options
-rw-r--r-- | mdk-stage1/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/dns.c b/mdk-stage1/dns.c index c0fc655d2..266864d37 100644 --- a/mdk-stage1/dns.c +++ b/mdk-stage1/dns.c @@ -67,7 +67,7 @@ char * mygethostbyaddr(char * ipnum) struct hostent * host; if (!inet_aton(ipnum, &in)) return NULL; - host = gethostbyaddr(&in, strlen((void *) &in), AF_INET); + host = gethostbyaddr(&in.s_addr, sizeof(in.s_addr) /* INADDRSZ */, AF_INET); if (host && host->h_name) return host->h_name; return NULL; |