[PATCH 1/2] fbsplash: fix regression from e4fa7b7

Timo Teräs timo.teras at iki.fi
Thu Sep 20 06:44:30 UTC 2012


commit e4fa7b7 (limit progress bar flicker) made the progress bar
counter unsigned causing i>=0 to never come true.

Signed-off-by: Timo Teräs <timo.teras at iki.fi>
Cc: Peter Korsgaard <jacmet at sunsite.dk>
---
Should go also to 1.20-fixes.

 miscutils/fbsplash.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c
index 37ca665..7a18f67 100644
--- a/miscutils/fbsplash.c
+++ b/miscutils/fbsplash.c
@@ -312,8 +312,7 @@ static void fb_drawprogressbar(unsigned percent)
 
 	pos_x = left_x;
 	if (percent > 0) {
-		int y;
-		unsigned i;
+		int i, y;
 
 		// actual progress bar
 		pos_x += (unsigned)(width * percent) / 100;
-- 
1.7.12



More information about the busybox mailing list