mirror of
https://github.com/curl/curl.git
synced 2025-02-11 14:50:40 +08: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
@ -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…
Reference in New Issue
Block a user