]> granicus.if.org Git - curl/commitdiff
socks.c: Fixed warning: conversion to 'int' from 'long unsigned int'
authorMarc Hoersken <info@marc-hoersken.de>
Fri, 14 Sep 2012 14:01:19 +0000 (16:01 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Fri, 14 Sep 2012 14:01:19 +0000 (16:01 +0200)
lib/socks.c

index c857f7a823f6b294391df001a3ae7c9d864c3434..399256726eadfe41ac91d75540d789ede893540e 100644 (file)
@@ -563,7 +563,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
     socksreq[len++] = 3; /* ATYP: domain name = 3 */
     socksreq[len++] = (char) hostname_len; /* address length */
     memcpy(&socksreq[len], hostname, hostname_len); /* address str w/o NULL */
-    len += hostname_len;
+    len += (int)hostname_len;
   }
   else {
     struct Curl_dns_entry *dns;