diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-01-31 07:51:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-01-31 07:51:06 +0000 |
commit | 3474ec4ecb72c664254c4f75b94a4959ab11b227 (patch) | |
tree | 98cde6bf1f1f8e5e2920798542b8b9511b218295 | |
parent | ec1736d488fadc30aa18a19281b78cd9906ad16a (diff) |
_num_chars did wrong when called with a number that starts with 1!
-rw-r--r-- | lib/hostip.c | 2 |
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; } |