mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
_num_chars did wrong when called with a number that starts with 1!
This commit is contained in:
parent
ec1736d488
commit
3474ec4ecb
@ -117,7 +117,7 @@ static int _num_chars(int i)
|
||||
chars++;
|
||||
|
||||
i = (int) i / 10;
|
||||
} while (i > 1);
|
||||
} while (i >= 1);
|
||||
|
||||
return chars;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user