mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:23:33 +03:00
urldata: make 'buffer_size' an unsigned int
It is already capped at READBUFFER_MAX which fits easily in 32 bits. Closes #9098
This commit is contained in:
parent
cb17b12b01
commit
3fa343a35c
4 changed files with 5 additions and 4 deletions
|
|
@ -398,7 +398,8 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data,
|
|||
}
|
||||
else if(keepon) {
|
||||
|
||||
if((perline == gotbytes) && (gotbytes > data->set.buffer_size/2)) {
|
||||
if((perline == gotbytes) &&
|
||||
(gotbytes > (ssize_t)data->set.buffer_size/2)) {
|
||||
/* We got an excessive line without newlines and we need to deal
|
||||
with it. We keep the first bytes of the line then we throw
|
||||
away the rest. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue