Skip to content

Commit

Permalink
Use strlcpy().
Browse files Browse the repository at this point in the history
MFC after:	2 weeks
  • Loading branch information
delphij committed Dec 5, 2017
1 parent aff7b6c commit 69097cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/ftpd/ftpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ user(char *name)
}
}
if (logging)
strncpy(curname, name, sizeof(curname)-1);
strlcpy(curname, name, sizeof(curname));

pwok = 0;
#ifdef USE_PAM
Expand Down

0 comments on commit 69097cd

Please sign in to comment.