diff --git a/common/util.c b/common/util.c index 25a3e861..13397437 100644 --- a/common/util.c +++ b/common/util.c @@ -8,7 +8,7 @@ int wrap(int i, int max) { int numlen(int n) { if (n == 0) { - return n; + return 1; } return log10(n) + 1; }