mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03:00
Kernel: Fix KBufferBuilder::append()
insertion_ptr() already includes the offset.
This commit is contained in:
parent
c15f9e7593
commit
63f458ffc1
Notes:
sideshowbarker
2024-07-19 05:10:16 +09:00
Author: https://github.com/bugaevc Commit: https://github.com/SerenityOS/serenity/commit/63f458ffc1b Pull-request: https://github.com/SerenityOS/serenity/pull/2675 Reviewed-by: https://github.com/awesomekling
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user