mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 04:08:47 +00:00
Avoid using %n$ operand number formats to compile cleanly with ISO C.
This commit is contained in:
parent
8ddc8a6da3
commit
5ed5089733
@ -236,9 +236,11 @@ static int tunnel_to(int sock, ip_type ip, unsigned short port, proxy_type pt, c
|
|||||||
encode_base_64(src, dst, sizeof(dst));
|
encode_base_64(src, dst, sizeof(dst));
|
||||||
} else dst[0] = 0;
|
} else dst[0] = 0;
|
||||||
|
|
||||||
|
uint16_t hs_port = ntohs(port);
|
||||||
len = snprintf((char *) buff, sizeof(buff),
|
len = snprintf((char *) buff, sizeof(buff),
|
||||||
"CONNECT %1$s:%2$d HTTP/1.0\r\nHost: %1$s:%2$d\r\n%3$s%4$s%5$s\r\n",
|
"CONNECT %s:%d HTTP/1.0\r\nHost: %s:%d\r\n%s%s%s\r\n",
|
||||||
dns_name, ntohs(port),
|
dns_name, hs_port,
|
||||||
|
dns_name, hs_port,
|
||||||
ulen ? "Proxy-Authorization: Basic " : dst,
|
ulen ? "Proxy-Authorization: Basic " : dst,
|
||||||
dst, ulen ? "\r\n" : dst);
|
dst, ulen ? "\r\n" : dst);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user