diff options
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 4e0df2546..604dbbbdc 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -619,7 +619,7 @@ Curl_addrinfo *Curl_ip2addr(in_addr_t num, const char *hostname, int port) h->h_aliases = NULL; /* Now store the dotted version of the address */ - snprintf((char *)h->h_name, 16, "%s", hostname); + snprintf(h->h_name, 16, "%s", hostname); #if defined(VMS) && \ defined(__INITIAL_POINTER_SIZE) && (__INITIAL_POINTER_SIZE == 64) |