diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-19 08:18:09 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-19 08:18:09 +0000 |
commit | e2ffdfec50591a3e10bf9514a5538f2d0ae15bfa (patch) | |
tree | e5da148ddc03d7183aff8dd8b5a41ef186bd8091 /src/irc | |
parent | dc0088f58456ba2b83d8f75057595ce0b5dd512a (diff) | |
download | irssi-e2ffdfec50591a3e10bf9514a5538f2d0ae15bfa.zip |
don't crash if server sends us !channel name less than 6 chars.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2817 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/channel-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index 6b474097..b39c5c74 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -227,7 +227,7 @@ static void event_join(IRC_SERVER_REC *server, const char *data, const char *nic tmp = strchr(channel, 7); /* ^G does something weird.. */ if (tmp != NULL) *tmp = '\0'; - if (*channel != '!') + if (*channel != '!' || strlen(channel) < 7) shortchan = NULL; else { /* !channels have 5 chars long identification string before |