From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 11:42:15 +0000 (+0200)
Subject: socks5_connect(): Fix format specifier in a log message
X-Git-Tag: v_3_0_29~138
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/user-manual/static/coding.html?a=commitdiff_plain;h=3cc55dad1b9d96de47176ea913ca32f6d6f70065;p=privoxy.git

socks5_connect(): Fix format specifier in a log message
---

diff --git a/gateway.c b/gateway.c
index 67219537..4207cb7c 100644
--- a/gateway.c
+++ b/gateway.c
@@ -1193,7 +1193,7 @@ static jb_socket socks5_connect(const struct forward_spec *fwd,
       header_length= strlen(client_headers);
 
       log_error(LOG_LEVEL_CONNECT,
-         "Optimistically sending %d bytes of client headers intended for %s",
+         "Optimistically sending %lu bytes of client headers intended for %s",
          header_length, csp->http->hostport);
 
       if (write_socket(sfd, client_headers, header_length))