]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/gfxmenu/view.c: Fix off-by-one error.
authorVladimir Testov <vladimir.testov@rosalab.ru>
Wed, 3 Apr 2013 06:53:58 +0000 (08:53 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 3 Apr 2013 06:53:58 +0000 (08:53 +0200)
ChangeLog
grub-core/gfxmenu/view.c

index ebc71ebc71b9de5534439adb77c7169b3aa22817..8bdb17a750d5d16cb5aa8f2ff0b70ddc319fbe69 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
+
+       * grub-core/gfxmenu/view.c: Fix off-by-one error.
+
 2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
 
        * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
index 1918ea44ca52e4f0bdaf7097713ba39343f7ada7..6de96ca006cf236e844986b4b0dd816d819ce30c 100644 (file)
@@ -195,7 +195,7 @@ grub_gfxmenu_print_timeout (int timeout, void *data)
   if (view->first_timeout == -1)
     view->first_timeout = timeout;
 
-  update_timeouts (1, -(view->first_timeout + 1), -timeout, 0);
+  update_timeouts (1, -view->first_timeout, -timeout, 0);
   redraw_timeouts (view);
   grub_video_swap_buffers ();
   if (view->double_repaint)