mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
Yet another curl_off_t printf format attempt, we now exclude the %-letter from
FORMAT_OFF_T to allow additional options to get specified, like with '"%5" FORMAT_OFF_T'.
This commit is contained in:
parent
9f437269fb
commit
353f764119
7 changed files with 38 additions and 34 deletions
|
|
@ -1240,8 +1240,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
|
||||
if (data->set.timeout &&
|
||||
((Curl_tvdiff(k->now, k->start)/1000) >= data->set.timeout)) {
|
||||
failf (data, "Operation timed out with " FORMAT_OFF_T " out of "
|
||||
FORMAT_OFF_T " bytes received",
|
||||
failf (data, "Operation timed out with %" FORMAT_OFF_T
|
||||
" out of %" FORMAT_OFF_T " bytes received",
|
||||
k->bytecount, conn->size);
|
||||
return CURLE_OPERATION_TIMEOUTED;
|
||||
}
|
||||
|
|
@ -1255,7 +1255,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
|
|||
if(!(data->set.no_body) && (conn->size != -1) &&
|
||||
(k->bytecount != conn->size) &&
|
||||
!conn->newurl) {
|
||||
failf(data, "transfer closed with " FORMAT_OFF_T
|
||||
failf(data, "transfer closed with %" FORMAT_OFF_T
|
||||
" bytes remaining to read",
|
||||
conn->size - k->bytecount);
|
||||
return CURLE_PARTIAL_FILE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue