summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-05-18 22:42:16 +0200
committerSebastien Helleu <flashcode@flashtux.org>2013-05-18 22:42:16 +0200
commite459939ead60a8dbad3519574bfe850798d5738a (patch)
tree81d79fcf72c6d194e9d4f34ec2ef79cb8a8b579d
parente0281a40f0f93ae9f3a69595f7dff74fe15ae8e7 (diff)
downloadweechat-e459939ead60a8dbad3519574bfe850798d5738a.zip
relay: fix uncontrolled format string in redirection of irc commands
-rw-r--r--ChangeLog1
-rw-r--r--src/plugins/relay/irc/relay-irc.c2
2 files changed, 2 insertions, 1 deletions
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);
}