Commit 5cec4771 authored by Max Kellermann's avatar Max Kellermann

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

parent a5d03007
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment