1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

add casts to silent compiler warnings with 64bit systems.

This commit is contained in:
Gunter Knauf 2009-08-29 03:53:09 +00:00
parent fa2ea23c96
commit 9e8eec4816

View File

@ -514,10 +514,10 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
socksreq[len++] = 1; /* username/pw subnegotiation version */
socksreq[len++] = (char) userlen;
memcpy(socksreq + len, proxy_name, (int) userlen);
len += userlen;
len += (int)userlen;
socksreq[len++] = (char) pwlen;
memcpy(socksreq + len, proxy_password, (int) pwlen);
len += pwlen;
len += (int)pwlen;
code = Curl_write_plain(conn, sock, (char *)socksreq, len, &written);
if((code != CURLE_OK) || (len != written)) {