diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 1 | ||||
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/ruby/weechat-ruby.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index 7f7c8ccff..b61d38031 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -328,6 +328,7 @@ static XS (XS_weechat_print_infobar) perl_plugin->infobar_printf (perl_plugin, SvIV (ST (0)), + "%s", SvPV (ST (1), integer)); XSRETURN_YES; 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); } diff --git a/src/plugins/scripts/ruby/weechat-ruby.c b/src/plugins/scripts/ruby/weechat-ruby.c index e17304801..b251f2981 100644 --- a/src/plugins/scripts/ruby/weechat-ruby.c +++ b/src/plugins/scripts/ruby/weechat-ruby.c @@ -330,7 +330,7 @@ weechat_ruby_print_infobar (VALUE class, VALUE delay, VALUE message) c_delay = FIX2INT (delay); c_message = STR2CSTR (message); - ruby_plugin->infobar_printf (ruby_plugin, c_delay, c_message); + ruby_plugin->infobar_printf (ruby_plugin, c_delay, "%s", c_message); return INT2FIX (1); } |