mirror of
https://github.com/curl/curl.git
synced 2026-05-02 04:27:55 +03:00
cf-socket: make infof() call use %zu for size_t output
Detected by Coverity CID 1518986 and CID 1518984 Closes #10268
This commit is contained in:
parent
9749a379e0
commit
c34fcbbad8
1 changed files with 2 additions and 2 deletions
|
|
@ -1141,7 +1141,7 @@ static ssize_t cf_socket_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
|
||||
DEBUGASSERT(data->conn == cf->conn);
|
||||
nwritten = Curl_send_plain(data, cf->sockindex, buf, len, err);
|
||||
CF_DEBUGF(infof(data, CFMSG(cf, "send(len=%d) -> %d, err=%d"),
|
||||
CF_DEBUGF(infof(data, CFMSG(cf, "send(len=%zu) -> %d, err=%d"),
|
||||
len, (int)nwritten, *err));
|
||||
return nwritten;
|
||||
}
|
||||
|
|
@ -1153,7 +1153,7 @@ static ssize_t cf_socket_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
|
||||
DEBUGASSERT(data->conn == cf->conn);
|
||||
nread = Curl_recv_plain(data, cf->sockindex, buf, len, err);
|
||||
CF_DEBUGF(infof(data, CFMSG(cf, "recv(len=%d) -> %d, err=%d"),
|
||||
CF_DEBUGF(infof(data, CFMSG(cf, "recv(len=%zu) -> %d, err=%d"),
|
||||
len, (int)nread, *err));
|
||||
return nread;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue