Sfoglia il codice sorgente

Kernel: Fix KBufferBuilder::append()

insertion_ptr() already includes the offset.
Sergey Bugaev 5 anni fa
parent
commit
63f458ffc1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Kernel/KBufferBuilder.cpp

+ 1 - 1
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;
 }