summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-20 14:39:01 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-20 14:39:01 +0000
commit034e4c99bd543ba7e9969b964d4b3dda1c579d3b (patch)
treec978f31b2c012db5fdcf6aab1a80c608706e5f84 /mdk-stage1
parent03f40025f6b8732cae53bb04c7515922b5cccc4e (diff)
downloaddrakx-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar
drakx-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar.gz
drakx-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar.bz2
drakx-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar.xz
drakx-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.zip
fix potential segfault thx to gwenole
Diffstat (limited to 'mdk-stage1')
-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;