From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 11 Sep 2020 12:51:39 +0000 (+0200)
Subject: ssl_store_cert(): Fix format specifiers in a log message
X-Git-Tag: v_3_0_29~113
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/documentation.html?a=commitdiff_plain;h=6ede7269d436ab362cf945a497044a831a092196;p=privoxy.git

ssl_store_cert(): Fix format specifiers in a log message
---

diff --git a/openssl.c b/openssl.c
index 3cf65e5f..56dc52a3 100644
--- a/openssl.c
+++ b/openssl.c
@@ -301,7 +301,7 @@ static int ssl_store_cert(struct client_state *csp, X509* crt)
    if (len > (sizeof(last->file_buf) - 1))
    {
       log_error(LOG_LEVEL_ERROR,
-         "X509 PEM cert len %d is larger than buffer len %d",
+         "X509 PEM cert len %ld is larger than buffer len %lu",
          len, sizeof(last->file_buf) - 1);
       len = sizeof(last->file_buf) - 1;
    }