Bad and useless strncat use (reported by psychon, thanks to him)

This commit is contained in:
Arnaud Cornet 2009-06-18 13:50:43 +02:00
parent 015969e86b
commit 7af35a3018
1 changed files with 5 additions and 5 deletions

View File

@ -126,18 +126,18 @@ list_t *channel_name_list(struct channel *c)
len = 0;
}
if (len != 0) {
strncat(str, " ", NAMESIZE);
strcat(str, " ");
len++;
}
if (ovmask & NICKOP)
strncat(str, "@", NAMESIZE);
strcat(str, "@");
else if (ovmask & NICKHALFOP)
strncat(str, "%", NAMESIZE);
strncat(str, "%");
else if (ovmask & NICKVOICED)
strncat(str, "+", NAMESIZE);
strcat(str, "+");
len++;
strncat(str, nick, NAMESIZE);
strncat(str, nick);
len += strlen(nick);
assert(len < NAMESIZE);
}