Add missing terminating null byte

Reported by Trou, thanks to him !
Closes #477
This commit is contained in:
Pierre-Louis Bonicoli 2015-09-03 05:40:58 +02:00
parent 5594e69bf6
commit 209b9a7cd7
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ list_t *channel_name_list(struct link_server *server, struct channel *c)
int msb;
if ((msb = fls(ovmask))) {
str[len] = server->prefixes[msb - 1];
len++;
str[++len] = 0;
}
strcat(str, nick);