From: Daniel Stenberg Date: Mon, 6 Feb 2023 16:50:09 +0000 (+0100) Subject: vtls: fix failf() format argument type for %.*s handling X-Git-Tag: curl-7_88_0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82123417fffda4f589e832558e366f1cbbdc4daf;p=thirdparty%2Fcurl.git vtls: fix failf() format argument type for %.*s handling Reported by Coverity Closes #10422 --- 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; */