aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-10-13 11:25:31 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-10-13 11:25:31 +0000
commit2386a44f8bd65d630b7c65e0ee2579bc385c99cb (patch)
tree466ffcbed89213a8896f76b28d29d88e5c714a4e /libexec
parent56373a5196b5b5da3caeb22b1147f0c933785dcd (diff)
downloadsrc-2386a44f8bd65d630b7c65e0ee2579bc385c99cb.tar.gz
src-2386a44f8bd65d630b7c65e0ee2579bc385c99cb.zip
Use strlcpy instead of incorrectly using strncpy.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=105039
Diffstat (limited to 'libexec')
-rw-r--r--libexec/bootpd/getether.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/bootpd/getether.c b/libexec/bootpd/getether.c
index e894e53dc7e8..3a658266891e 100644
--- a/libexec/bootpd/getether.c
+++ b/libexec/bootpd/getether.c
@@ -82,7 +82,7 @@ getether(ifname, eap)
int nit;
bzero((char *) &ifrnit, sizeof(ifrnit));
- strncpy(&ifrnit.ifr_name[0], ifname, IFNAMSIZ);
+ strlcpy(&ifrnit.ifr_name[0], ifname, IFNAMSIZ);
nit = open("/dev/nit", 0);
if (nit < 0) {