* grub-core/normal/menu_text.c (menu_clear_timeout): Clear second

line of timeout as it may contain the rest of long line.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-05-04 13:52:21 +02:00
parent 14af86e41b
commit 44dea3f9a9
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
line of timeout as it may contain the rest of long line.
2013-05-04 Vladimir Serbinenko <phcoder@gmail.com> 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/main.c: Fix freed memory dereference. * grub-core/normal/main.c: Fix freed memory dereference.

View file

@ -460,6 +460,8 @@ menu_text_clear_timeout (void *dataptr)
grub_term_gotoxy (data->term, 0, grub_term_height (data->term) - 3); grub_term_gotoxy (data->term, 0, grub_term_height (data->term) - 3);
grub_print_spaces (data->term, grub_term_width (data->term) - 1); grub_print_spaces (data->term, grub_term_width (data->term) - 1);
grub_term_gotoxy (data->term, 0, grub_term_height (data->term) - 2);
grub_print_spaces (data->term, grub_term_width (data->term) - 1);
grub_term_gotoxy (data->term, grub_term_cursor_x (data->term), grub_term_gotoxy (data->term, grub_term_cursor_x (data->term),
GRUB_TERM_FIRST_ENTRY_Y + data->offset); GRUB_TERM_FIRST_ENTRY_Y + data->offset);
grub_term_refresh (data->term); grub_term_refresh (data->term);