浏览代码

COMP: Remove compile warning on cygwin

Ken Martin 21 年之前
父节点
当前提交
f6e25ab9d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/CTest/Curl/hostip4.c

+ 1 - 1
Source/CTest/Curl/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);