From 78778d6e6f3aa3ff2ff0e95dc37994f9f3560300 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 2 Feb 2026 08:20:21 -0500 Subject: [PATCH] misc: Correct inifinite loop when volume has a fractional component Introduced in 3f2ca2024 Purely a theretical problem but we should fix it regardless Change-Id: Ifeb4e1aeb3291c723b2addf2f2d391775db57b03 --- apps/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/misc.c b/apps/misc.c index 5c3d457d54..05f1fa6a93 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -1959,7 +1959,7 @@ static long get_nvol_factor(void) factor /= 10; /* nothing *actually* needs this, but: */ - while (numdecimals > 1) + while (numdecimals-- > 1) factor *= 10; return factor;