Skip to content
Snippets Groups Projects
Commit 9e8eec48 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

add casts to silent compiler warnings with 64bit systems.

parent fa2ea23c
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment