_num_chars did wrong when called with a number that starts with 1!

This commit is contained in:
Daniel Stenberg 2002-01-31 07:51:06 +00:00
parent ec1736d488
commit 3474ec4ecb

View File

@ -117,7 +117,7 @@ static int _num_chars(int i)
chars++;
i = (int) i / 10;
} while (i > 1);
} while (i >= 1);
return chars;
}