summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/human.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/human.c b/lib/human.c
index 37577234a..d03a2e4e4 100644
--- a/lib/human.c
+++ b/lib/human.c
@@ -158,7 +158,7 @@ human_readable (uintmax_t n, char *buf,
e *= base;
power++;
}
- while (e * base <= amt && power < sizeof suffixes - 1);
+ while (e * base <= damt && power < sizeof suffixes - 1);
damt /= e;