socks.c: Fixed warning: conversion to 'int' from 'long unsigned int'
This commit is contained in:
@@ -563,7 +563,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
|||||||
socksreq[len++] = 3; /* ATYP: domain name = 3 */
|
socksreq[len++] = 3; /* ATYP: domain name = 3 */
|
||||||
socksreq[len++] = (char) hostname_len; /* address length */
|
socksreq[len++] = (char) hostname_len; /* address length */
|
||||||
memcpy(&socksreq[len], hostname, hostname_len); /* address str w/o NULL */
|
memcpy(&socksreq[len], hostname, hostname_len); /* address str w/o NULL */
|
||||||
len += hostname_len;
|
len += (int)hostname_len;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
struct Curl_dns_entry *dns;
|
struct Curl_dns_entry *dns;
|
||||||
|
|||||||
Reference in New Issue
Block a user