]> granicus.if.org Git - curl/commitdiff
someone should have me punished, but this bug made curl bug seriously
authorDaniel Stenberg <daniel@haxx.se>
Mon, 28 Jan 2002 19:23:18 +0000 (19:23 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 28 Jan 2002 19:23:18 +0000 (19:23 +0000)
on IPv4-linux machines

lib/hostip.c

index 9acb9a9789feee096e035925f12682f732e501ee..913acbee39b93f92c9dd1e12bd265f86a6895ef6 100644 (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))