From 45dbe3000bd2bf714479ee12f70d5bcdf503e3dd Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 2 Jun 2012 14:46:22 +0200 Subject: [PATCH] * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which resulted in \\ at the end of the line. --- ChangeLog | 5 +++++ grub-core/normal/menu_entry.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 716026e1c..ad6032e86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-06-02 Vladimir Serbinenko + + * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which + resulted in \\ at the end of the line. + 2012-06-02 Vladimir Serbinenko * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t. diff --git a/grub-core/normal/menu_entry.c b/grub-core/normal/menu_entry.c index ac247d3a2..8e2b4da5d 100644 --- a/grub-core/normal/menu_entry.c +++ b/grub-core/normal/menu_entry.c @@ -208,7 +208,7 @@ print_line (struct line *linep, int offset, int y, else { for (; - x < (int) grub_term_entry_width (term_screen->term); + x <= (int) grub_term_entry_width (term_screen->term); x++) grub_putcode (' ', term_screen->term); }