vtls: infof using %.*s needs to provide the length as int

Fixes a Coverity warning.

Closes #10436
This commit is contained in:
Daniel Stenberg 2023-02-07 16:09:12 +01:00
parent 7dad86a03f
commit 1c91ba3939
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

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