]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ws: replace a cast by matching the format string
authorViktor Szakats <commit@vsz.me>
Thu, 1 Jan 2026 18:59:21 +0000 (19:59 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 2 Jan 2026 09:45:12 +0000 (10:45 +0100)
Closes #20151

lib/ws.c

index 0f60d442136940193da4b7e0d5e0d575b678e6ef..37cacae966d2d64daa066de38685b3c2fcf6205c 100644 (file)
--- a/lib/ws.c
+++ b/lib/ws.c
@@ -832,8 +832,8 @@ static CURLcode ws_enc_add_frame(struct Curl_easy *data,
 
   if(enc->payload_remain > 0) {
     /* trying to write a new frame before the previous one is finished */
-    failf(data, "[WS] starting new frame with %zd bytes from last one "
-                "remaining to be sent", (ssize_t)enc->payload_remain);
+    failf(data, "[WS] starting new frame with %" FMT_OFF_T " bytes "
+                "from last one remaining to be sent", enc->payload_remain);
     return CURLE_SEND_ERROR;
   }