From 7136b545c1f3a471766b34a38afd370d4b0915d8 Mon Sep 17 00:00:00 2001 From: Andrei Borzenkov Date: Wed, 16 Dec 2015 19:20:10 +0300 Subject: [PATCH] Erase backspaced character in grub_username_get It probably does not work across linefeed, but hopefully user names are not that long (and nobody is using terminal that small). --- grub-core/normal/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/normal/auth.c b/grub-core/normal/auth.c index 8615c48c3..7338f8245 100644 --- a/grub-core/normal/auth.c +++ b/grub-core/normal/auth.c @@ -177,7 +177,7 @@ grub_username_get (char buf[], unsigned buf_size) if (cur_len) { cur_len--; - grub_printf ("\b"); + grub_printf ("\b \b"); } continue; }