diff --git a/kernel/src/render/TextRenderer.cpp b/kernel/src/render/TextRenderer.cpp index 6d47cabc..4084c03f 100644 --- a/kernel/src/render/TextRenderer.cpp +++ b/kernel/src/render/TextRenderer.cpp @@ -79,7 +79,7 @@ void TextRenderer::putchar(char chr) { xpos = 0; ypos += FONT_HEIGHT; - if (ypos > bootboot.fb_height) + if ((ypos + FONT_HEIGHT) >= bootboot.fb_height) { memcpy((void*)bootboot.fb_ptr, (char*)bootboot.fb_ptr + (bootboot.fb_scanline * FONT_HEIGHT), bootboot.fb_size - (bootboot.fb_scanline * FONT_HEIGHT));