* 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:
Vladimir 'phcoder' Serbinenko 2011-03-23 20:29:17 +01:00
parent 41a85f5508
commit 5657722c3c
2 changed files with 7 additions and 0 deletions

View file

@ -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;
}