]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 2 Jun 2012 12:46:22 +0000 (14:46 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 2 Jun 2012 12:46:22 +0000 (14:46 +0200)
resulted in \\ at the end of the line.

ChangeLog
grub-core/normal/menu_entry.c

index 716026e1cf0b66d06d639c91aac8d8a474c11ff5..ad6032e8608d86670f995c04901138511b068e47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * 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  <phcoder@gmail.com>
 
        * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
index ac247d3a203fbbe07d96d4c903243453d0dae21c..8e2b4da5dda557782a308464bacf86b5cb423a3d 100644 (file)
@@ -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);
      }