summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-10-19 11:37:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-10-19 11:37:13 +0000
commitb9cdd10a86966c1ed19ebb0630b78c9581a771d8 (patch)
tree6f4d26eeb575bbeb0182e863336b5e57f02f3367 /src
parent40edf12dcadf0eeb140c89b0f1b121aae3a36616 (diff)
downloadirssi-b9cdd10a86966c1ed19ebb0630b78c9581a771d8.zip
format string exploit found & patch by cph@cph.demon.co.uk
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1849 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/irc/proxy/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/proxy/dump.c b/src/irc/proxy/dump.c
index 53c6d3c9..8074ae44 100644
--- a/src/irc/proxy/dump.c
+++ b/src/irc/proxy/dump.c
@@ -167,7 +167,7 @@ static void dump_join(IRC_CHANNEL_REC *channel, CLIENT_REC *client)
if (str->len >= 500) {
g_string_append_c(str, '\n');
- proxy_outdata(client, str->str);
+ proxy_outdata(client, "%s", str->str);
create_names_start(str, channel, client);
first = TRUE;
}
@@ -188,7 +188,7 @@ static void dump_join(IRC_CHANNEL_REC *channel, CLIENT_REC *client)
g_slist_free(nicks);
g_string_append_c(str, '\n');
- proxy_outdata(client, str->str);
+ proxy_outdata(client, "%s", str->str);
g_string_free(str, TRUE);
proxy_outdata(client, ":%s 366 %s %s :End of /NAMES list.\n",