summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-06-13 18:38:59 -0300
committerTingPing <tngpng@gmail.com>2013-06-13 18:38:59 -0300
commit9b958ed3932ddfbfb139d6bbe6c40c7638535dd6 (patch)
treed522fea8cd37eeafbcc93cfa9f545dc46ace2816 /src
parent84e8c658f6badc47a37cc1d200678cac9ba6cd02 (diff)
Use snprintf
Diffstat (limited to 'src')
-rw-r--r--src/common/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index 61d5cb40..8a704e5f 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -1826,7 +1826,7 @@ hexchat_pluginpref_set_int (hexchat_plugin *pl, const char *var, int value)
 {
 	char buffer[12];
 
-	sprintf (buffer, "%d", value);
+	snprintf (buffer, sizeof (buffer), "%d", value);
 	return hexchat_pluginpref_set_str_real (pl, var, buffer, 1);
 }