summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/dns.c b/mdk-stage1/dns.c
index d1e67c78d..b6cab87ce 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), AF_INET);
if (host && host->h_name)
return host->h_name;
return NULL;