1
0
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:
Marc Hoersken 2012-09-14 16:01:19 +02:00
parent ba41ecfa17
commit 9b25b00fa3

View File

@ -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;