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; }