Cleanup: Converted all sprintf to snprintf

This commit is contained in:
Paul Beckingham 2016-02-25 00:19:38 -05:00
parent 88f6872190
commit 2d20f4d57b
8 changed files with 24 additions and 32 deletions

View file

@ -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);
}