diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-20 14:39:01 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-20 14:39:01 +0000 |
commit | 034e4c99bd543ba7e9969b964d4b3dda1c579d3b (patch) | |
tree | c978f31b2c012db5fdcf6aab1a80c608706e5f84 /mdk-stage1 | |
parent | 03f40025f6b8732cae53bb04c7515922b5cccc4e (diff) | |
download | drakx-backup-do-not-use-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar drakx-backup-do-not-use-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar.gz drakx-backup-do-not-use-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar.bz2 drakx-backup-do-not-use-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.tar.xz drakx-backup-do-not-use-034e4c99bd543ba7e9969b964d4b3dda1c579d3b.zip |
fix potential segfault thx to gwenole
Diffstat (limited to 'mdk-stage1')
-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 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; |