Commit 5f66af37 authored by Max Kellermann's avatar Max Kellermann

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

parent 31ae50b1
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment