From: Daniel Stenberg Date: Tue, 7 Feb 2023 15:09:12 +0000 (+0100) Subject: vtls: infof using %.*s needs to provide the length as int X-Git-Tag: curl-7_88_0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c91ba39396de4f4460025b0554c0d48a9f2f038;p=thirdparty%2Fcurl.git vtls: infof using %.*s needs to provide the length as int Fixes a Coverity warning. Closes #10436 --- diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index f5967ecb33..15f6844c7b 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -2028,7 +2028,7 @@ CURLcode Curl_alpn_set_negotiated(struct Curl_cfilter *cf, /* return CURLE_NOT_BUILT_IN; */ goto out; } - infof(data, VTLS_INFOF_ALPN_ACCEPTED_LEN_1STR, proto_len, proto); + infof(data, VTLS_INFOF_ALPN_ACCEPTED_LEN_1STR, (int)proto_len, proto); } else { cf->conn->alpn = CURL_HTTP_VERSION_NONE;