diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:52:20 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-06 07:52:20 +0000 |
commit | 49b2896a3bbd53fcc4f3e596bd52e418da921cba (patch) | |
tree | baa8bb78341a7bc10f42e406022f84aa9ba9c47a | |
parent | 39af394a1c3ae1d8ac71ad263a7c524988702c2e (diff) |
avoid warnings on systems with this member set const
-rw-r--r-- | lib/hostip4.c | 2 |
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); |