forked from btclock/btclock_v3
Bugfixes for stack size and market cap with small chars, write tests for the small char mcap
This commit is contained in:
parent
e8a9e253f7
commit
85579e98cf
7 changed files with 162 additions and 15 deletions
|
@ -68,7 +68,8 @@ std::string formatNumberWithSuffix(std::uint64_t num, int numCharacters)
|
|||
}
|
||||
else
|
||||
{
|
||||
sprintf(result, "%llu", (unsigned long long)num);
|
||||
snprintf(result, sizeof(result), "%llu", (unsigned long long)num);
|
||||
// sprintf(result, "%llu", (unsigned long long)num);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue