From 5cec477131fa9223977d590cb4fc4a98a06732ba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 May 2014 18:59:51 +0200 Subject: input/curl: pass remaining size to CircularBuffer::Append() --- src/input/plugins/CurlInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input/plugins') diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index 738937a26..01c3c6838 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -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; -- cgit v1.2.3