1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

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

View file

@ -159,7 +159,7 @@ public:
flush(); flush();
if (bytes.size() - nwritten >= Size) 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)); nwritten += write(bytes.slice(nwritten));
} }