Use snprintf
This commit is contained in:
parent
84e8c658f6
commit
9b958ed393
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue