postsize is off_t now, so we typecase it to int before doing normal printf

with it (knowing it won't be larger than what fits in an int)
This commit is contained in:
Daniel Stenberg 2004-03-13 17:11:42 +00:00
Родитель 24cfa7f1bb
Коммит d04ffd258b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1623,7 +1623,7 @@ CURLcode Curl_http(struct connectdata *conn)
add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
else {
/* Append the POST data chunky-style */
add_bufferf(req_buffer, "%x\r\n", postsize);
add_bufferf(req_buffer, "%x\r\n", (int)postsize);
add_buffer(req_buffer, data->set.postfields, (size_t)postsize);
add_buffer(req_buffer, "\r\n0\r\n\r\n", 7); /* end of a chunked
transfer stream */