diff options
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r-- | lib/pingpong.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c index cd5517326..74a678a1a 100644 --- a/lib/pingpong.c +++ b/lib/pingpong.c @@ -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. */ |