From dd39ac243273052609e5f3ee6a5217f07e06402d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 8 Jan 2006 00:07:24 +0000 Subject: Fixed infobar_printf interface function, security problem with string format --- src/plugins/scripts/python/weechat-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/scripts/python') diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index 62addc033..a62ae57a5 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -242,7 +242,7 @@ weechat_python_print_infobar (PyObject *self, PyObject *args) return Py_BuildValue ("i", 0); } - python_plugin->infobar_printf (python_plugin, delay, message); + python_plugin->infobar_printf (python_plugin, delay, "%s", message); return Py_BuildValue ("i", 1); } -- cgit v1.2.3