Index: hostip.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/hostip.c,v
retrieving revision 1.70
diff -u -r1.70 hostip.c
--- hostip.c	26 Jun 2002 15:39:23 -0000	1.70
+++ hostip.c	31 Jul 2002 08:57:36 -0000
@@ -630,7 +630,7 @@
 
       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 */
     
