From 3474ec4ecb72c664254c4f75b94a4959ab11b227 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 31 Jan 2002 07:51:06 +0000 Subject: [PATCH] _num_chars did wrong when called with a number that starts with 1! --- lib/hostip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hostip.c b/lib/hostip.c index 913acbee39..9151605d4e 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; }