AK: Add missing Bytes::slice call in Buffered<T>.

This commit is contained in:
asynts 2020-10-03 13:44:09 +02:00 committed by Andreas Kling
parent 00f47bba23
commit 9f00afd8cd
Notes: sideshowbarker 2024-07-19 02:05:17 +09:00

View file

@ -159,7 +159,7 @@ public:
flush();
if (bytes.size() - nwritten >= Size)
nwritten += m_stream.write_or_error(bytes);
nwritten += m_stream.write_or_error(bytes.slice(nwritten));
nwritten += write(bytes.slice(nwritten));
}