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:
parent
9e4594be53
commit
ca5678c8c1
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user