aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 50d2adaa8..ebbb9e375 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -161,7 +161,7 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname, int port)
h->h_aliases = NULL;
/* Now store the dotted version of the address */
- snprintf(h->h_name, 16, "%s", hostname);
+ snprintf((char *)h->h_name, 16, "%s", hostname);
ai = Curl_he2ai(h, port);