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

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