From: Viktor Szakats Date: Thu, 1 Jan 2026 18:59:21 +0000 (+0100) Subject: ws: replace a cast by matching the format string X-Git-Tag: curl-8_18_0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74c4bdc24435ce8dba46263ffe979c15e32d7eab;p=thirdparty%2Fcurl.git ws: replace a cast by matching the format string Closes #20151 --- diff --git a/lib/ws.c b/lib/ws.c index 0f60d44213..37cacae966 100644 --- 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; }