mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Cleanup: Converted all sprintf to snprintf
This commit is contained in:
parent
88f6872190
commit
2d20f4d57b
8 changed files with 24 additions and 32 deletions
|
@ -199,7 +199,7 @@ int CmdSummary::execute (std::string& output)
|
|||
|
||||
char percent[12] = "0%";
|
||||
if (c + p)
|
||||
sprintf (percent, "%d%%", 100 * c / (c + p));
|
||||
snprintf (percent, 12, "%d%%", 100 * c / (c + p));
|
||||
view.set (row, 3, percent);
|
||||
processed.push_back (i.first);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue