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

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