mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Cleanup: Converted all sprintf to snprintf
This commit is contained in:
parent
88f6872190
commit
2d20f4d57b
8 changed files with 24 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue