]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Sep 2010 20:05:27 +0000 (22:05 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Sep 2010 20:05:27 +0000 (22:05 +0200)
(print_backlog): set backlog_ucs4 and backlog_glyphs.
Reported by: Yves Blusseau.

ChangeLog
grub-core/normal/term.c

index 7d957c5cf0927d1810f0e64a113c1e3e076d94fb..3e8ccf4eb74fa9e73680587b673b6d7dad40e0f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
+       (print_backlog): set backlog_ucs4 and backlog_glyphs.
+       Reported by: Yves Blusseau.
+
 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/normal/misc.c (grub_normal_print_device_info): Show
index b55c0f06a78f2c3521f015577c231addb526a6be..760900e8670321f87632c90f0dd34fcc9b5c3d4d 100644 (file)
@@ -657,7 +657,7 @@ put_glyphs_terminal (const struct grub_unicode_glyph *visual,
              >= (grub_ssize_t) grub_term_height (term) - 2)
            {
              state->backlog_glyphs = visual_ptr + 1;
-             state->backlog_len = visual_len - (visual - visual_ptr) - 1;
+             state->backlog_len = visual_len - (visual_ptr - visual) - 1;
              return 1;
            }
 
@@ -688,6 +688,7 @@ print_backlog (struct grub_term_output *term,
          grub_free (state->free);
          state->free = NULL;
          state->backlog_len = 0;
+         state->backlog_ucs4 = 0;
        }
       return ret;
     }
@@ -703,6 +704,7 @@ print_backlog (struct grub_term_output *term,
          grub_free (state->free);
          state->free = NULL;
          state->backlog_len = 0;
+         state->backlog_glyphs = 0;
        }
       return ret;
     }