aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-08 22:44:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-08 22:44:43 +0000
commitca5678c8c112bb31b3f4074a6526905027b57e38 (patch)
tree9836e6400a4992414c82044745013a1e7a04e59d
parent9e4594be5319f0942e1ed9a40dda8b32df3b5cc3 (diff)
attempted hpux fix for resolves
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index df054589d..5a173990b 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -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 */