From: Vladimir 'phcoder' Serbinenko Date: Sat, 2 Jun 2012 12:46:22 +0000 (+0200) Subject: * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which X-Git-Tag: 2.00~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45dbe3000bd2bf714479ee12f70d5bcdf503e3dd;p=thirdparty%2Fgrub.git * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which resulted in \\ at the end of the line. --- 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); }