aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-28 19:23:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-28 19:23:18 +0000
commit6212e6990aead04919bb69eef3a724ff5df81fde (patch)
tree0fe9fd6d5a767c51677096d3b90a3fa372194296 /lib
parent28049a183ca3f0c315571d4909ff7fbbc23cc81f (diff)
someone should have me punished, but this bug made curl bug seriously
on IPv4-linux machines
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 9acb9a978..913acbee3 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))