From: Daniel Stenberg Date: Mon, 28 Jan 2002 19:23:18 +0000 (+0000) Subject: someone should have me punished, but this bug made curl bug seriously X-Git-Tag: curl-7_9_4~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6212e6990aead04919bb69eef3a724ff5df81fde;p=thirdparty%2Fcurl.git someone should have me punished, but this bug made curl bug seriously on IPv4-linux machines --- diff --git a/lib/hostip.c b/lib/hostip.c index 9acb9a9789..913acbee39 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -467,7 +467,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data, /* Linux */ if( gethostbyname_r(hostname, (struct hostent *)buf, - buf + sizeof(struct hostent), + (char *)buf + sizeof(struct hostent), CURL_NAMELOOKUP_SIZE - sizeof(struct hostent), &h, /* DIFFERENCE */ &h_errnop))