ws: replace a cast by matching the format string

Closes #20151
This commit is contained in:
Viktor Szakats 2026-01-01 19:59:21 +01:00
parent 27ffb81a58
commit 74c4bdc244
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;
}