]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vtls: infof using %.*s needs to provide the length as int
authorDaniel Stenberg <daniel@haxx.se>
Tue, 7 Feb 2023 15:09:12 +0000 (16:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Feb 2023 15:33:04 +0000 (16:33 +0100)
Fixes a Coverity warning.

Closes #10436

lib/vtls/vtls.c

index f5967ecb332d108fac12ea4449dd9ad2d08adf12..15f6844c7b89f6c66cbd7ee979009ee230b55b6e 100644 (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;