Skip to content

Commit

Permalink
splitc() -> splitcn()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Feb 1, 2025
1 parent 028e756 commit 0917402
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tcldcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1353,8 +1353,7 @@ static int tcl_boot STDVAR
if (strchr(who, '@') != NULL) {
char whonick[HANDLEN + 1];

splitc(whonick, who, '@');
whonick[HANDLEN] = 0;
splitcn(whonick, who, '@', sizeof whonick);
if (!strcasecmp(who, botnetnick))
strlcpy(who, whonick, sizeof who);
else if (remote_boots > 0) {
Expand Down

0 comments on commit 0917402

Please sign in to comment.