aboutsummaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-14 19:40:10 +0000
committerYang Tse <yangsita@gmail.com>2008-01-14 19:40:10 +0000
commit1d620a3df4d1cb6d3f462b6db7b207b1cf2a0dbb (patch)
treee4b4fc2b62cc5c3bd18f8787eabf653c37a2cafd /lib/socks.c
parent69f685056dc8396f9bc4772e74c5a846accb51e0 (diff)
fix compiler warning
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socks.c b/lib/socks.c
index 13b7caa36..dc159ad38 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -566,7 +566,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
socksreq[2] = 0; /* must be zero */
if(!socks5_resolve_local) {
- packetsize = 5 + hostname_len + 2;
+ packetsize = (ssize_t)(5 + hostname_len + 2);
socksreq[3] = 3; /* ATYP: domain name = 3 */
socksreq[4] = (char) hostname_len; /* address length */