From 50e781d3ecccedbfef323ce468dd281d483b44d0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Dec 2022 12:29:59 +0100 Subject: [PATCH] socks: fix infof() flag for outputing a char It used to be a 'long', %lu is no longer correct. Follow-up to 57d2d9b6bed33d Detected by Coverity CID 1517663 Closes #10100 --- lib/socks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socks.c b/lib/socks.c index d1220fa46b..1b9f4fde7d 100644 --- a/lib/socks.c +++ b/lib/socks.c @@ -546,7 +546,7 @@ static CURLproxycode do_SOCKS5(struct Curl_cfilter *cf, if(auth & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI)) infof(data, - "warning: unsupported value passed to CURLOPT_SOCKS5_AUTH: %lu", + "warning: unsupported value passed to CURLOPT_SOCKS5_AUTH: %u", auth); if(!(auth & CURLAUTH_BASIC)) /* disable username/password auth */ -- 2.47.3