grub2/0241-grub-core-gfxmenu-gui_circular_progress.c-Fix-off-by.patch
Peter Jones f74b50e380 Rebase to upstream, fix a pile of bugs. The usual.
Signed-off-by: Peter Jones <pjones@redhat.com>
2013-06-12 15:37:08 -04:00

46 lines
1.3 KiB
Diff

From cdfccef227436ae09bb0999597c575ec568eaffc 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 241/482] * 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.2.1