mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-06 02:55:49 +03:00
VirtualConsole: use memmove for an overlapping copy
This commit is contained in:
parent
b6ee8a2c8d
commit
0a10462896
Notes:
sideshowbarker
2024-07-19 10:48:22 +09:00
Author: https://github.com/jcs 🔰 Commit: https://github.com/SerenityOS/serenity/commit/0a104628967 Pull-request: https://github.com/SerenityOS/serenity/pull/888
@ -389,7 +389,7 @@ void VirtualConsole::scroll_up()
|
||||
clear_vga_row(24);
|
||||
}
|
||||
} else {
|
||||
memcpy(m_buffer, m_buffer + 160, 160 * 24);
|
||||
memmove(m_buffer, m_buffer + 160, 160 * 24);
|
||||
u16* linemem = (u16*)&m_buffer[24 * 160];
|
||||
for (u16 i = 0; i < columns(); ++i)
|
||||
linemem[i] = 0x0720;
|
||||
|
Loading…
Reference in New Issue
Block a user