Add missing terminating null byte
Reported by Trou, thanks to him ! Closes #477
This commit is contained in:
parent
5594e69bf6
commit
209b9a7cd7
@ -139,7 +139,7 @@ list_t *channel_name_list(struct link_server *server, struct channel *c)
|
|||||||
int msb;
|
int msb;
|
||||||
if ((msb = fls(ovmask))) {
|
if ((msb = fls(ovmask))) {
|
||||||
str[len] = server->prefixes[msb - 1];
|
str[len] = server->prefixes[msb - 1];
|
||||||
len++;
|
str[++len] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
strcat(str, nick);
|
strcat(str, nick);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user