From 63f458ffc1b47da542b68b9a22f17600e8e135ea Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Thu, 2 Jul 2020 11:14:48 +0300 Subject: [PATCH] Kernel: Fix KBufferBuilder::append() insertion_ptr() already includes the offset. --- Kernel/KBufferBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/KBufferBuilder.cpp b/Kernel/KBufferBuilder.cpp index adc0da35162..51734bbb931 100644 --- a/Kernel/KBufferBuilder.cpp +++ b/Kernel/KBufferBuilder.cpp @@ -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; }