vtls: fix failf() format argument type for %.*s handling

Reported by Coverity

Closes #10422
This commit is contained in:
Daniel Stenberg 2023-02-06 17:50:09 +01:00
parent b0b33fe71d
commit 82123417ff
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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; */