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

@@ -219,7 +219,7 @@ int CmdColor::execute (std::string& output)
char label [12];
for (int g = 0; g < 6; ++g)
{
sprintf (label, " %d", g);
snprintf (label, 12, " %d", g);
out << Color::colorize (label, "bold green");
for (int r = 0; r < 6; ++r)
{