From e5e9e0c5e49ae059a4eb615d4941b59007d24baf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 12 Sep 2022 09:29:16 +0200 Subject: [PATCH] ws: fix an infof() call to use %uz for size_t output Detected by Coverity, CID 1514665. Closes #9480 --- lib/ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ws.c b/lib/ws.c index 2ba0121138..304805d166 100644 --- a/lib/ws.c +++ b/lib/ws.c @@ -293,7 +293,7 @@ static CURLcode ws_decode(struct Curl_easy *data, *olen = payloadssize; wsp->usedbuf = total; /* number of bytes "used" from the buffer */ *endp = &p[total]; - infof(data, "WS: received %u bytes payload", payloadssize); + infof(data, "WS: received %uz bytes payload", payloadssize); return CURLE_OK; } -- 2.47.3