* 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
|
@ -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…
Add table
Add a link
Reference in a new issue