From: Daniel Stenberg Date: Mon, 12 Sep 2022 07:29:16 +0000 (+0200) Subject: ws: fix an infof() call to use %uz for size_t output X-Git-Tag: curl-7_86_0~250 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5e9e0c5e49ae059a4eb615d4941b59007d24baf;p=thirdparty%2Fcurl.git ws: fix an infof() call to use %uz for size_t output Detected by Coverity, CID 1514665. Closes #9480 --- 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; }