* grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-28 17:54:54 +02:00
parent 5100671655
commit 3f8cdd9052
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
2012-03-28 Colin Watson <cjwatson@ubuntu.com>
* docs/grub.texi (Invoking grub-probe): New section.

View file

@ -577,7 +577,7 @@ bidi_line_wrap (struct grub_unicode_glyph *visual_out,
/* FIXME: can be optimized. */
for (j = max_level; j > min_odd_level - 1; j--)
{
unsigned in = 0;
unsigned in = line_start;
unsigned i;
for (i = line_start; i < k; i++)
{