* 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 committed 2011-03-23 20:29:17 +01:00
1 parent 41a85f5508
commit 5657722c3c
2 files changed
+7

No files matched your search

+2
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;
}