diff options
| author | Xin LI <delphij@FreeBSD.org> | 2017-12-20 07:16:41 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2017-12-20 07:16:41 +0000 |
| commit | 28aa652c864652524486be9880ce1cc3eb980da9 (patch) | |
| tree | 32253492c3223acb023a067fbec4e0ad2b4a0f7b /libexec | |
| parent | 85565a473eecb23bed5b4854515b7d65e204b46b (diff) | |
Notes
Diffstat (limited to 'libexec')
| -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 1e9c794eefcd..badabacb348b 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1075,7 +1075,7 @@ user(char *name) } } if (logging) - strncpy(curname, name, sizeof(curname)-1); + strlcpy(curname, name, sizeof(curname)); pwok = 0; #ifdef USE_PAM |
