Blob Blame Raw
From 67ce00e14b3ba739178e9effc215744e4634e4da Mon Sep 17 00:00:00 2001
From: Vladimir Testov <vladimir.testov@rosalab.ru>
Date: Wed, 3 Apr 2013 08:51:13 +0200
Subject: [PATCH 240/364] 	* grub-core/gfxmenu/gui_circular_progress.c:
 Fix off-by-one error.

---
 ChangeLog                                 | 4 ++++
 grub-core/gfxmenu/gui_circular_progress.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 969a90f..ebc71eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
+
+	* grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
+
 2013-04-01  Radosław Szymczyszyn <lavrin@gmail.com>
 
 	* grub-core/partmap/apple.c (apple_partition_map_iterate): Add
diff --git a/grub-core/gfxmenu/gui_circular_progress.c b/grub-core/gfxmenu/gui_circular_progress.c
index 098ae1c..d07ca6e 100644
--- a/grub-core/gfxmenu/gui_circular_progress.c
+++ b/grub-core/gfxmenu/gui_circular_progress.c
@@ -152,12 +152,12 @@ circprog_paint (void *vself, const grub_video_rect_t *region)
   if (self->ticks_disappear)
     {
       tick_begin = nticks;
-      tick_end = self->num_ticks - 1;
+      tick_end = self->num_ticks;
     }
   else
     {
       tick_begin = 0;
-      tick_end = nticks - 1;
+      tick_end = nticks;
     }
 
   int i;
-- 
1.8.1.4