diff options
author | Max Kellermann <max@duempel.org> | 2014-05-21 18:59:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-21 18:59:51 +0200 |
commit | 5cec477131fa9223977d590cb4fc4a98a06732ba (patch) | |
tree | 4929330af2127ffd893c26fbeb2e64b26bdcd7ae /src/input/plugins | |
parent | a5d0300787137ec3509956f3ed3fdf0e8656eff6 (diff) | |
download | mpd-5cec477131fa9223977d590cb4fc4a98a06732ba.tar.gz mpd-5cec477131fa9223977d590cb4fc4a98a06732ba.tar.xz mpd-5cec477131fa9223977d590cb4fc4a98a06732ba.zip |
input/curl: pass remaining size to CircularBuffer::Append()
Diffstat (limited to 'src/input/plugins')
-rw-r--r-- | src/input/plugins/CurlInputPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |