From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 11:53:25 +0000 (+0200)
Subject: send_https_request(): Fix format specifiers in log messages
X-Git-Tag: v_3_0_29~134
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/man-page/faq/@proxy-info-url@?a=commitdiff_plain;h=44d2442e8d4b41ad78f54f598de4a04ec30bc076;p=privoxy.git

send_https_request(): Fix format specifiers in log messages
---

diff --git a/jcc.c b/jcc.c
index 2f83e92f..b53aa311 100644
--- a/jcc.c
+++ b/jcc.c
@@ -2159,14 +2159,14 @@ static int send_https_request(struct client_state *csp)
          if (csp->expected_client_content_length < flushed)
          {
             log_error(LOG_LEVEL_ERROR,
-               "Flushed %d bytes of request body while only expecting %llu",
+               "Flushed %ld bytes of request body while only expecting %llu",
                flushed, csp->expected_client_content_length);
             csp->expected_client_content_length = 0;
          }
          else
          {
             log_error(LOG_LEVEL_CONNECT,
-               "Flushed %d bytes of request body while expecting %llu",
+               "Flushed %ld bytes of request body while expecting %llu",
                flushed, csp->expected_client_content_length);
             csp->expected_client_content_length -= (unsigned)flushed;
             if (receive_and_send_encrypted_post_data(csp))
@@ -2178,7 +2178,7 @@ static int send_https_request(struct client_state *csp)
       else
       {
          log_error(LOG_LEVEL_CONNECT,
-            "Flushed %d bytes of request body", flushed);
+            "Flushed %ld bytes of request body", flushed);
       }
    }