diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-02-06 17:50:09 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-02-06 23:41:21 +0100 |
commit | 82123417fffda4f589e832558e366f1cbbdc4daf (patch) | |
tree | d4497fea4f9d25eead2f7cee65d152fd543ad87e /lib | |
parent | b0b33fe71d52ed65774b5ae24fa038b42ad7a235 (diff) | |
download | curl-82123417fffda4f589e832558e366f1cbbdc4daf.tar.gz |
vtls: fix failf() format argument type for %.*s handling
Reported by Coverity
Closes #10422
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/vtls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c index 604caccf7..e8ae3c05f 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; */ |