Skip to content
Snippets Groups Projects
Commit c453760c authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

* grub-core/term/gfxterm.c: Avoid division by zero.

parent e95685da
No related branches found
No related tags found
No related merge requests found
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/gfxterm.c: Avoid division by zero.
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
 
Avoid division by zero in serial.
......@@ -221,6 +221,8 @@ grub_virtual_screen_setup (unsigned int x, unsigned int y,
calculate_normal_character_width (virtual_screen.font);
virtual_screen.normal_char_height =
grub_font_get_max_char_height (virtual_screen.font);
if (virtual_screen.normal_char_height == 0)
virtual_screen.normal_char_height = 16;
virtual_screen.cursor_x = 0;
virtual_screen.cursor_y = 0;
virtual_screen.cursor_state = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment