fs/io/BufferedReader: add missing Consume() call

This commit is contained in:
Max Kellermann 2016-08-16 11:47:31 +02:00
parent 31ae50b137
commit 5f66af3712
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ BufferedReader::ReadFromBuffer(WritableBuffer<void> dest)
auto src = Read();
size_t nbytes = std::min(src.size, dest.size);
memcpy(dest.data, src.data, nbytes);
Consume(nbytes);
return nbytes;
}