1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

attempted hpux fix for resolves

This commit is contained in:
Daniel Stenberg 2002-08-08 22:44:43 +00:00
parent 9e4594be53
commit ca5678c8c1

View File

@ -630,7 +630,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
ret = gethostbyname_r(hostname,
(struct hostent *)buf,
(struct hostent_data *)(buf + sizeof(struct hostent)));
(struct hostent_data *)((char *)buf + sizeof(struct hostent)));
else
ret = -1; /* failure, too smallish buffer size */