diff options
author | Sergey Bugaev <bugaevc@serenityos.org> | 2020-07-02 11:14:48 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-05 12:26:27 +0200 |
commit | 63f458ffc1b47da542b68b9a22f17600e8e135ea (patch) | |
tree | e9766c7990c53c1cb1eaedac43d6d5d66d2be995 /Kernel | |
parent | c15f9e75932a3beb775b2083633879c04f2510a0 (diff) | |
download | serenity-63f458ffc1b47da542b68b9a22f17600e8e135ea.zip |
Kernel: Fix KBufferBuilder::append()
insertion_ptr() already includes the offset.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/KBufferBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/KBufferBuilder.cpp b/Kernel/KBufferBuilder.cpp index adc0da3516..51734bbb93 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; } |