From: Max Fillinger Date: Thu, 13 Aug 2026 14:51:17 +0000 (+0200) Subject: Fix format string specifier for size_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d44bf3d965a50387675a82ba31148fbde6fc8ac;p=thirdparty%2Fopenvpn.git Fix format string specifier for size_t size_t being the same as unsigned long is true on Linux, but this produces a warning when cross-compiling for Windows. Replace %lu with the correct format specifier %zu. Change-Id: Id8524d9c36ea913d557d3f43f1f62acc4186b4eb Signed-off-by: Max Fillinger Acked-by: Gert Doering Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1843 Message-Id: <20260813145122.14606-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg38303.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/pkcs11_mbedtls.c b/src/openvpn/pkcs11_mbedtls.c index bf9d95309..218321743 100644 --- a/src/openvpn/pkcs11_mbedtls.c +++ b/src/openvpn/pkcs11_mbedtls.c @@ -64,7 +64,7 @@ pkcs11_get_x509_cert(pkcs11h_certificate_t pkcs11_cert, mbedtls_x509_crt *cert) if (cert_blob_size > max_cert_size) { - msg(M_WARN, "PKCS#11: Certificate too large: %lu bytes, maximum is %lu", cert_blob_size, max_cert_size); + msg(M_WARN, "PKCS#11: Certificate too large: %zu bytes, maximum is %zu", cert_blob_size, max_cert_size); goto cleanup; }