summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/perl
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-01-08 00:07:24 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-01-08 00:07:24 +0000
commitdd39ac243273052609e5f3ee6a5217f07e06402d (patch)
treeb31fad3f06eff2329dbb23149a3cb26d7272cdee /src/plugins/scripts/perl
parent05456cc54e80e813b15850ee4ba7e5aa277f44fd (diff)
downloadweechat-dd39ac243273052609e5f3ee6a5217f07e06402d.zip
Fixed infobar_printf interface function, security problem with string format
Diffstat (limited to 'src/plugins/scripts/perl')
-rw-r--r--src/plugins/scripts/perl/weechat-perl.c1
1 files changed, 1 insertions, 0 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;