Cleanup: Converted all sprintf to snprintf
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user