diff --git a/kernel/core/kprintf.c b/kernel/core/kprintf.c index db25ac6c..e7da8d9b 100644 --- a/kernel/core/kprintf.c +++ b/kernel/core/kprintf.c @@ -177,6 +177,7 @@ kgets( kgets_collected = 0; kgets_want = size; kgets_newline = 0; + kgets_buffer[0] = '\0'; /* Assign the keyboard handler */ keyboard_buffer_handler = kgets_handler; while ((kgets_collected < size) && (!kgets_newline)) {