Skip to content
Permalink
Browse files

Fix channel name off-by-one

Found by: michaelortmann
Patch by: michaelortmann

strlcpy ftw!
  • Loading branch information
michaelortmann authored and vanosg committed Dec 13, 2019
1 parent 24554ef commit 73bba4f95a2035b55ba67e97aeff0b0022da9532
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/users.c
@@ -756,7 +756,7 @@ int readuserfile(char *file, struct userrec **ret)

cr->next = u->chanrec;
u->chanrec = cr;
strlcpy(cr->channel, chname, 80);
strlcpy(cr->channel, chname, sizeof cr->channel);
cr->laston = atoi(st);
cr->flags = fr.chan;
cr->flags_udef = fr.udef_chan;

0 comments on commit 73bba4f

Please sign in to comment.
You can’t perform that action at this time.