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
1 changed files with 1 additions and 1 deletions

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;