diff options
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r-- | src/fe-common/irc/fe-events.c | 2 |
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 f834f8af..a6fd8599 100644 --- a/src/fe-common/irc/fe-events.c +++ b/src/fe-common/irc/fe-events.c @@ -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); } |