diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-02-20 16:48:45 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-02-20 16:48:45 +0000 |
commit | 00053a45289228ea76c13bd5f102fc21367f9e3c (patch) | |
tree | 60266a23847b38fe6d7125c090cbae360f50b99c | |
parent | a5a39243b3a51c0187a108d325948155d0aa4fc0 (diff) | |
download | drakx-00053a45289228ea76c13bd5f102fc21367f9e3c.tar drakx-00053a45289228ea76c13bd5f102fc21367f9e3c.tar.gz drakx-00053a45289228ea76c13bd5f102fc21367f9e3c.tar.bz2 drakx-00053a45289228ea76c13bd5f102fc21367f9e3c.tar.xz drakx-00053a45289228ea76c13bd5f102fc21367f9e3c.zip |
Workaround DNS resolver bug on 64-bit platforms.
-rw-r--r-- | mdk-stage1/dietlibc/libcruft/dnscruft2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mdk-stage1/dietlibc/libcruft/dnscruft2.c b/mdk-stage1/dietlibc/libcruft/dnscruft2.c index b9cbaa743..539c6c1c7 100644 --- a/mdk-stage1/dietlibc/libcruft/dnscruft2.c +++ b/mdk-stage1/dietlibc/libcruft/dnscruft2.c @@ -43,12 +43,14 @@ int __dns_gethostbyx_r(const char* name, struct hostent* result, int size; if (lookfor==1) { - result->h_aliases=(char**)(buf+8*4); + /* FIXME: what does this magic constant mean? */ + result->h_aliases=(char**)(buf+2*sizeof(char*)*4); result->h_addrtype=AF_INET; result->h_length=4; result->h_addr_list=(char**)buf; } else { - result->h_aliases=(char**)(buf+8*16); + /* FIXME: what does this magic constant mean? */ + result->h_aliases=(char**)(buf+2*sizeof(char*)*16); result->h_addrtype=AF_INET6; result->h_length=16; result->h_addr_list=(char**)buf; |