From 4985ddaa7ae126df61644bd10c7457d05c8a39d7 Mon Sep 17 00:00:00 2001 From: Vladimir Testov Date: Wed, 3 Apr 2013 08:51:13 +0200 Subject: [PATCH] * 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 969a90fc2..ebc71ebc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-04-03 Vladimir Testov + + * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error. + 2013-04-01 Radosław Szymczyszyn * 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 098ae1c92..d07ca6e3c 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;