From 798176a8145963d6571154b03abb8d29f9095869 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 29 Oct 2019 00:33:50 +0100 Subject: Finally fixed a long-existent memory bug --- src/kernel/graphics/vesa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index f255da4..508e46c 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -299,7 +299,8 @@ void vesa_keyboard_char(char ch) { // terminal_scroll(); } else if (ch >= ' ') { vesa_draw_char(ch); - strcat(text, &ch); + char tmp[2] = {ch}; + strcat(text, tmp); } // terminal_scroll(); -- cgit v1.2.3