mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
AK: Add missing Bytes::slice call in Buffered<T>.
This commit is contained in:
parent
00f47bba23
commit
9f00afd8cd
Notes:
sideshowbarker
2024-07-19 02:05:17 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/9f00afd8cdf Pull-request: https://github.com/SerenityOS/serenity/pull/3676
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue