mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05: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++;
|
chars++;
|
||||||
|
|
||||||
i = (int) i / 10;
|
i = (int) i / 10;
|
||||||
} while (i > 1);
|
} while (i >= 1);
|
||||||
|
|
||||||
return chars;
|
return chars;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user