diff options
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r-- | payloads/libpayload/libc/console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/console.c b/payloads/libpayload/libc/console.c index caeb582945..b57fc47bf6 100644 --- a/payloads/libpayload/libc/console.c +++ b/payloads/libpayload/libc/console.c @@ -76,6 +76,9 @@ void console_add_input_driver(struct console_input_driver *in) /* Check if this driver was already added to the console list */ if (input_driver_exists(in)) return; + /* Flush out the driver input buffer. */ + while (in->havekey()) + in->getchar(); in->next = console_in; console_in = in; } |