mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:43:34 +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
|
|
@ -191,7 +191,7 @@ CURLcode Curl_file(struct connectdata *conn)
|
|||
date. */
|
||||
if(data->set.no_body && data->set.include_header && fstated) {
|
||||
CURLcode result;
|
||||
sprintf(buf, "Content-Length: " FORMAT_OFF_T "\r\n", expected_size);
|
||||
sprintf(buf, "Content-Length: %" FORMAT_OFF_T "\r\n", expected_size);
|
||||
result = Curl_client_write(data, CLIENTWRITE_BOTH, buf, 0);
|
||||
if(result)
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue