mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
add casts to silent compiler warnings with 64bit systems.
This commit is contained in:
parent
fa2ea23c96
commit
9e8eec4816
@ -514,10 +514,10 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||||||
socksreq[len++] = 1; /* username/pw subnegotiation version */
|
socksreq[len++] = 1; /* username/pw subnegotiation version */
|
||||||
socksreq[len++] = (char) userlen;
|
socksreq[len++] = (char) userlen;
|
||||||
memcpy(socksreq + len, proxy_name, (int) userlen);
|
memcpy(socksreq + len, proxy_name, (int) userlen);
|
||||||
len += userlen;
|
len += (int)userlen;
|
||||||
socksreq[len++] = (char) pwlen;
|
socksreq[len++] = (char) pwlen;
|
||||||
memcpy(socksreq + len, proxy_password, (int) pwlen);
|
memcpy(socksreq + len, proxy_password, (int) pwlen);
|
||||||
len += pwlen;
|
len += (int)pwlen;
|
||||||
|
|
||||||
code = Curl_write_plain(conn, sock, (char *)socksreq, len, &written);
|
code = Curl_write_plain(conn, sock, (char *)socksreq, len, &written);
|
||||||
if((code != CURLE_OK) || (len != written)) {
|
if((code != CURLE_OK) || (len != written)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user