someone should have me punished, but this bug made curl bug seriously

on IPv4-linux machines
This commit is contained in:
Daniel Stenberg 2002-01-28 19:23:18 +00:00
parent 28049a183c
commit 6212e6990a
1 changed files with 1 additions and 1 deletions

View File

@ -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))