Commit 44b38e49 authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

grub_menu_init_page: Avoid returning 0 geometry to avoid divisions by 0.

parent 68581b00
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/normal/menu_text.c (grub_menu_init_page): Avoid
returning 0 geometry to avoid divisions by 0.
2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
 
* grub-core/osdep/unix/cputime.c (grub_util_get_cpu_time_ms): Cache
......@@ -369,6 +369,9 @@ grub_menu_init_page (int nested, int edit,
geo->border = 0;
}
if (geo->entry_width <= 0)
geo->entry_width = 1;
if (geo->num_entries - msg_num_lines < 3
&& geo->timeout_lines == 2)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment