Cleanup: Converted all sprintf to snprintf

This commit is contained in:
Paul Beckingham
2016-02-25 00:19:38 -05:00
parent 9e5a0f0e61
commit 48167f53eb
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);
}