Use snprintf

This commit is contained in:
TingPing 2013-06-13 18:38:59 -03:00
parent 84e8c658f6
commit 9b958ed393
1 changed files with 1 additions and 1 deletions

View File

@ -1826,7 +1826,7 @@ hexchat_pluginpref_set_int (hexchat_plugin *pl, const char *var, int value)
{ {
char buffer[12]; char buffer[12];
sprintf (buffer, "%d", value); snprintf (buffer, sizeof (buffer), "%d", value);
return hexchat_pluginpref_set_str_real (pl, var, buffer, 1); return hexchat_pluginpref_set_str_real (pl, var, buffer, 1);
} }