From 1c91ba39396de4f4460025b0554c0d48a9f2f038 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 7 Feb 2023 16:09:12 +0100 Subject: [PATCH] vtls: infof using %.*s needs to provide the length as int Fixes a Coverity warning. Closes #10436 --- lib/vtls/vtls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2