mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
socks.c: Fixed warning: conversion to 'int' from 'long unsigned int'
This commit is contained in:
parent
ba41ecfa17
commit
9b25b00fa3
@ -563,7 +563,7 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
|
||||
socksreq[len++] = 3; /* ATYP: domain name = 3 */
|
||||
socksreq[len++] = (char) hostname_len; /* address length */
|
||||
memcpy(&socksreq[len], hostname, hostname_len); /* address str w/o NULL */
|
||||
len += hostname_len;
|
||||
len += (int)hostname_len;
|
||||
}
|
||||
else {
|
||||
struct Curl_dns_entry *dns;
|
||||
|
Loading…
Reference in New Issue
Block a user