From e2ffdfec50591a3e10bf9514a5538f2d0ae15bfa Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 19 May 2002 08:18:09 +0000 Subject: 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 --- src/irc/core/channel-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irc/core') 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 -- cgit v1.2.3