From 82123417fffda4f589e832558e366f1cbbdc4daf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 6 Feb 2023 17:50:09 +0100 Subject: [PATCH] vtls: fix failf() format argument type for %.*s handling Reported by Coverity Closes #10422 --- 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 604caccf71..e8ae3c05ff 100644 --- a/lib/vtls/vtls.c +++ b/lib/vtls/vtls.c @@ -2022,7 +2022,7 @@ CURLcode Curl_alpn_set_negotiated(struct Curl_cfilter *cf, #endif else { cf->conn->alpn = CURL_HTTP_VERSION_NONE; - failf(data, "unsupported ALPN protocol: '%.*s'", proto_len, proto); + failf(data, "unsupported ALPN protocol: '%.*s'", (int)proto_len, proto); /* TODO: do we want to fail this? Previous code just ignored it and * some vtls backends even ignore the return code of this function. */ /* return CURLE_NOT_BUILT_IN; */