From 7af35a3018e3aff62411ad770d9fc14e344b526a Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Thu, 18 Jun 2009 13:50:43 +0200 Subject: [PATCH] Bad and useless strncat use (reported by psychon, thanks to him) --- src/irc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/irc.c b/src/irc.c index cfc8bd7..25ab9e4 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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); }