Kernel: Fix KBufferBuilder::append()

insertion_ptr() already includes the offset.
This commit is contained in:
Sergey Bugaev 2020-07-02 11:14:48 +03:00 committed by Andreas Kling
parent c15f9e7593
commit 63f458ffc1
Notes: sideshowbarker 2024-07-19 05:10:16 +09:00

View File

@ -65,7 +65,7 @@ void KBufferBuilder::append(const char* characters, int length)
return;
if (!can_append(length))
return;
memcpy(insertion_ptr() + m_size, characters, length);
memcpy(insertion_ptr(), characters, length);
m_size += length;
}