diff options
author | Xin LI <delphij@FreeBSD.org> | 2017-12-05 07:21:47 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2017-12-05 07:21:47 +0000 |
commit | 69097cd8da7e52567dd83f0242cf5431c6783fe8 (patch) | |
tree | 73b897fd658f45f05b0b6679f25d8162dd6015cd /libexec/ftpd | |
parent | aff7b6c709179f9a827ddd01c15e6e227bb7fe08 (diff) | |
download | src-69097cd8da7e52567dd83f0242cf5431c6783fe8.tar.gz src-69097cd8da7e52567dd83f0242cf5431c6783fe8.zip |
Use strlcpy().
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=326562
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index e41ffd253b0b..38fc9ebb4778 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -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 |