diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-02-13 13:18:24 +0100 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2016-06-05 16:24:55 +0200 |
commit | 72712a0c62b0403f0fa472ccbe34fda8fb2cd530 (patch) | |
tree | 54b053fa85d0630ff04f5f8e65843fe14a85e00a /src/irc/core | |
parent | 8289f360757870b56a15576a20e79e1f2ca30fef (diff) | |
download | irssi-72712a0c62b0403f0fa472ccbe34fda8fb2cd530.zip |
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.
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/irc-nicklist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/irc-nicklist.c b/src/irc/core/irc-nicklist.c index bcb9d1f6..b22f3269 100644 --- a/src/irc/core/irc-nicklist.c +++ b/src/irc/core/irc-nicklist.c @@ -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); |