_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
1 changed files with 1 additions and 1 deletions

View File

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