From 5f66af3712259e1757d742e8e7dfe8fa89fb6ea5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 Aug 2016 11:47:31 +0200 Subject: [PATCH] fs/io/BufferedReader: add missing Consume() call --- src/fs/io/BufferedReader.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fs/io/BufferedReader.cxx b/src/fs/io/BufferedReader.cxx index dac092b17..9ad7bdbc3 100644 --- a/src/fs/io/BufferedReader.cxx +++ b/src/fs/io/BufferedReader.cxx @@ -59,6 +59,7 @@ BufferedReader::ReadFromBuffer(WritableBuffer dest) auto src = Read(); size_t nbytes = std::min(src.size, dest.size); memcpy(dest.data, src.data, nbytes); + Consume(nbytes); return nbytes; }