summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
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 e894e53..3a65826 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) {
OpenPOWER on IntegriCloud