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:
Родитель
24cfa7f1bb
Коммит
d04ffd258b
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче