ws: fix an infof() call to use %uz for size_t output

Detected by Coverity, CID 1514665.

Closes #9480
This commit is contained in:
Daniel Stenberg 2022-09-12 09:29:16 +02:00
parent e5839f4ee7
commit e5e9e0c5e4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -293,7 +293,7 @@ static CURLcode ws_decode(struct Curl_easy *data,
*olen = payloadssize; *olen = payloadssize;
wsp->usedbuf = total; /* number of bytes "used" from the buffer */ wsp->usedbuf = total; /* number of bytes "used" from the buffer */
*endp = &p[total]; *endp = &p[total];
infof(data, "WS: received %u bytes payload", payloadssize); infof(data, "WS: received %uz bytes payload", payloadssize);
return CURLE_OK; return CURLE_OK;
} }