input/curl: pass remaining size to CircularBuffer::Append()

This commit is contained in:
Max Kellermann 2014-05-21 18:59:51 +02:00
parent a5d0300787
commit 5cec477131

View File

@ -807,7 +807,7 @@ CurlInputStream::DataReceived(const void *ptr, size_t received_size)
assert(w.size >= remaining);
memcpy(w.data, (const uint8_t *)ptr + nbytes, remaining);
buffer.Append(received_size);
buffer.Append(remaining);
}
ready = true;