--- libutil/human.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libutil/human.c b/libutil/human.c index 7e39ba5..0f80b9b 100644 --- a/libutil/human.c +++ b/libutil/human.c _AT_@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ +#include <stdint.h> #include <stdio.h> #include <string.h> -#include <stdint.h> #include "../util.h" _AT_@ -13,7 +13,7 @@ humansize(off_t n) double size; int i; - for (size = n, i = 0; size >= 1024 && i < strlen(postfixes); i++) + for (size = n, i = 0; size >= 1024 && postfixes[i+1]; i++) size /= 1024; if (!i) -- 2.52.0Received on Fri Feb 06 2026 - 12:32:33 CET
This archive was generated by hypermail 2.3.0 : Fri Feb 06 2026 - 14:24:32 CET