Replace strocpy with g_strlcpy

The only difference was that the former returned 1 if the buffer was
overflown, but the return value was never checked.
This commit is contained in:
LemonBoy 2016-02-13 13:18:24 +01:00
commit 72712a0c62
4 changed files with 4 additions and 21 deletions

View file

@ -48,7 +48,7 @@ NICK_REC *irc_nicklist_insert(IRC_CHANNEL_REC *channel, const char *nick,
rec->send_massjoin = send_massjoin;
if (prefixes != NULL) {
strocpy(rec->prefixes, prefixes, sizeof(rec->prefixes));
g_strlcpy(rec->prefixes, prefixes, sizeof(rec->prefixes));
}
nicklist_insert(CHANNEL(channel), rec);