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:
Daniel Stenberg 2004-03-02 09:31:18 +00:00
parent 9f437269fb
commit 353f764119
7 changed files with 38 additions and 34 deletions

View file

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