From: Vladimir Testov Date: Wed, 3 Apr 2013 06:51:13 +0000 (+0200) Subject: * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error. X-Git-Tag: grub-2.02-beta1~1222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4985ddaa7ae126df61644bd10c7457d05c8a39d7;p=thirdparty%2Fgrub.git * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error. --- 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;