aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 913acbee3..9151605d4 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -117,7 +117,7 @@ static int _num_chars(int i)
chars++;
i = (int) i / 10;
- } while (i > 1);
+ } while (i >= 1);
return chars;
}