summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-12-20 07:16:41 +0000
committerdelphij <delphij@FreeBSD.org>2017-12-20 07:16:41 +0000
commit600f5ae0bd2406735adb856db1e915b0570db303 (patch)
tree32253492c3223acb023a067fbec4e0ad2b4a0f7b /libexec
parentd69ec242989a300650ae6ece0c654c7fd7897a66 (diff)
downloadFreeBSD-src-600f5ae0bd2406735adb856db1e915b0570db303.zip
FreeBSD-src-600f5ae0bd2406735adb856db1e915b0570db303.tar.gz
MFC r326562: Use strlcpy().
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 1e9c794..badabac 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
OpenPOWER on IntegriCloud