]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ws: fix an infof() call to use %uz for size_t output
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Sep 2022 07:29:16 +0000 (09:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Sep 2022 08:02:38 +0000 (10:02 +0200)
Detected by Coverity, CID 1514665.

Closes #9480

lib/ws.c

index 2ba0121138119756622b0a92b526bc73d021b9c7..304805d166b246167082d604eb457cd3145515f0 100644 (file)
--- 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;
 }