aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index e2d2867..8b65c27 100644
--- a/util.c
+++ b/util.c
@@ -91,9 +91,9 @@ void size_readable(float *size, const char **unit) {
const char *units[] = { "", "K", "M", "G" };
int i;
- for (i = 0; i < LEN(units) && *size > 1024; i++)
+ for (i = 0; i < ARRLEN(units) && *size > 1024; i++)
*size /= 1024;
- *unit = units[MIN(i, LEN(units) - 1)];
+ *unit = units[MIN(i, ARRLEN(units) - 1)];
}
char* absolute_path(const char *filename) {