input/curl: pass remaining size to CircularBuffer::Append()
This commit is contained in:
parent
a5d0300787
commit
5cec477131
@ -807,7 +807,7 @@ CurlInputStream::DataReceived(const void *ptr, size_t received_size)
|
|||||||
assert(w.size >= remaining);
|
assert(w.size >= remaining);
|
||||||
|
|
||||||
memcpy(w.data, (const uint8_t *)ptr + nbytes, remaining);
|
memcpy(w.data, (const uint8_t *)ptr + nbytes, remaining);
|
||||||
buffer.Append(received_size);
|
buffer.Append(remaining);
|
||||||
}
|
}
|
||||||
|
|
||||||
ready = true;
|
ready = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user