aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vesa.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-29 00:33:50 +0100
committerMarvin Borner2019-10-29 00:33:50 +0100
commit798176a8145963d6571154b03abb8d29f9095869 (patch)
tree8aa01e4d91cfde9edd92b59cb5c9faa9ee117725 /src/kernel/graphics/vesa.c
parent4f7484085c0074220ebf425da9f1cd202d4cbda1 (diff)
Finally fixed a long-existent memory bug
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r--src/kernel/graphics/vesa.c3
1 files changed, 2 insertions, 1 deletions
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();