* grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
if no ASCII character is found to prevent crash.
This commit is contained in:
parent
41a85f5508
commit
5657722c3c
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
|
||||
if no ASCII character is found to prevent crash.
|
||||
|
||||
2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
|
||||
|
||||
* grub-core/video/bitmap.c (match_extension): Ignore case.
|
||||
|
|
|
@ -945,6 +945,8 @@ calculate_normal_character_width (grub_font_t font)
|
|||
if (glyph->device_width > width)
|
||||
width = glyph->device_width;
|
||||
}
|
||||
if (!width)
|
||||
return 8;
|
||||
|
||||
return width;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue