From e459939ead60a8dbad3519574bfe850798d5738a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 18 May 2013 22:42:16 +0200 Subject: [PATCH] relay: fix uncontrolled format string in redirection of irc commands --- ChangeLog | 1 + src/plugins/relay/irc/relay-irc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d05d6898c..0c12e56a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -99,6 +99,7 @@ Version 0.4.1 (under dev!) functions (bug #38510) * perl: simplify code to load scripts * python: fix crash when loading scripts with Python 3.x (patch #8044) +* relay: fix uncontrolled format string in redirection of irc commands * relay: rename compression "gzip" to "zlib" (compression is zlib, not gzip) * relay: add message "_nicklist_diff" (differences between old and current nicklist) diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c index 6e77038c0..3e52535d0 100644 --- a/src/plugins/relay/irc/relay-irc.c +++ b/src/plugins/relay/irc/relay-irc.c @@ -557,7 +557,7 @@ relay_irc_hsignal_irc_redir_cb (void *data, const char *signal, { for (i = 0; i < num_messages; i++) { - relay_irc_sendf (client, messages[i]); + relay_irc_sendf (client, "%s", messages[i]); } weechat_string_free_split (messages); }