1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Fix out of bounds access in event_wallops().

bug #662
Submitted by: nemo


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5068 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2009-05-15 11:54:33 +00:00 committed by jilles
parent 6aa167e5ac
commit 1f9c560a74

View File

@ -298,7 +298,7 @@ static void event_wallops(IRC_SERVER_REC *server, const char *data, const char *
tmp = g_strdup(data+8);
len = strlen(tmp);
if (tmp[len-1] == 1) tmp[len-1] = '\0';
if (len >= 1 && tmp[len-1] == 1) tmp[len-1] = '\0';
printformat(server, NULL, MSGLEVEL_WALLOPS, IRCTXT_ACTION_WALLOPS, nick, tmp);
g_free(tmp);
}