aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-01-31 07:51:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-01-31 07:51:06 +0000
commit3474ec4ecb72c664254c4f75b94a4959ab11b227 (patch)
tree98cde6bf1f1f8e5e2920798542b8b9511b218295
parentec1736d488fadc30aa18a19281b78cd9906ad16a (diff)
_num_chars did wrong when called with a number that starts with 1!
-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;
}