Permalink
Browse files

strncpyz() -> strlcpy()

  • Loading branch information...
michaelortmann authored and vanosg committed Oct 10, 2018
1 parent e3a6d3f commit 199cf9be96bceb9aa2944e83ce277147ad2504cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mod/irc.mod/chan.c
View
@@ -2033,7 +2033,7 @@ static int gotkick(char *from, char *origmsg)
struct userrec *u;
struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0 };
strncpyz(buf2, origmsg, sizeof buf2);
strlcpy(buf2, origmsg, sizeof buf2);
msg = buf2;
chname = newsplit(&msg);
chan = findchan(chname);

0 comments on commit 199cf9b

Please sign in to comment.