summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorWill Storey <will@summercat.com>2017-10-21 20:00:25 -0700
committerWill Storey <will@summercat.com>2017-10-24 19:51:01 -0700
commit8843d4f77d8e829135e2ff9b354990134c58c46a (patch)
tree49d253aea45c10fb3cea79971030f8279f9c22b1 /src/fe-common
parentcfa51c5ae2c06f4b93f443c986ec0bc316c860a4 (diff)
downloadirssi-8843d4f77d8e829135e2ff9b354990134c58c46a.zip
Strip : from <trailing> parameters
This is to fix #601. The function used to extract the mode string assumed that ":" would only occur in a particular spot. This lead to the possibility that ":" could be treated as part of things like nicknames or mode arguments, where it should have been stripped as part of protocol escaping.
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/irc/fe-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index 850174c5..cc83d476 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -224,7 +224,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
static void event_mode(IRC_SERVER_REC *server, const char *data,
const char *nick, const char *addr)
{
- char *params, *channel, *mode;
+ char *params = NULL, *channel = NULL, *mode = NULL;
g_return_if_fail(data != NULL);