Browse Source

Kernel: Fix KBufferBuilder::append()

insertion_ptr() already includes the offset.
Sergey Bugaev 5 years ago
parent
commit
63f458ffc1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Kernel/KBufferBuilder.cpp

+ 1 - 1
Kernel/KBufferBuilder.cpp

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