From 77852924285aa7fc2e5b5110833495799b28803c Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 2 Jan 2011 21:43:32 +0100 Subject: Fix crash with malformed IRC message "324" received --- src/plugins/irc/irc-protocol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 313656526..61b768457 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -2520,7 +2520,8 @@ IRC_PROTOCOL_CALLBACK(324) argv[3], IRC_COLOR_CHAT_DELIMITERS, IRC_COLOR_CHAT, - (argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4], + (argc > 4) ? + ((argv_eol[4][0] == ':') ? argv_eol[4] + 1 : argv_eol[4]) : "", IRC_COLOR_CHAT_DELIMITERS); } -- cgit v1.2.3