Use CURL_FORMAT_OFF_T for printf()inf curl_off_t variables.

This commit is contained in:
Daniel Stenberg
2004-03-01 16:28:00 +00:00
parent 71d81f1f75
commit cb72a80fe0
5 changed files with 24 additions and 21 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: %Od\r\n", expected_size);
sprintf(buf, "Content-Length: " CURL_FORMAT_OFF_T "\r\n", expected_size);
result = Curl_client_write(data, CLIENTWRITE_BOTH, buf, 0);
if(result)
return result;