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

@@ -180,7 +180,7 @@ const std::string Task::identifier (bool shortened /* = false */) const
void Task::setAsNow (const std::string& att)
{
char now[16];
sprintf (now, "%u", (unsigned int) time (NULL));
snprintf (now, 16, "%u", (unsigned int) time (NULL));
set (att, now);
recalc_urgency = true;