mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
|
@ -1782,7 +1782,7 @@ void Variant::cast (const enum type new_type)
|
|||
case type_string:
|
||||
{
|
||||
char temp[24];
|
||||
sprintf (temp, "%d", _integer);
|
||||
snprintf (temp, 24, "%d", _integer);
|
||||
_string = temp;
|
||||
}
|
||||
break;
|
||||
|
@ -1800,7 +1800,7 @@ void Variant::cast (const enum type new_type)
|
|||
case type_string:
|
||||
{
|
||||
char temp[24];
|
||||
sprintf (temp, "%g", _real);
|
||||
snprintf (temp, 24, "%g", _real);
|
||||
_string = temp;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue