From 2386a44f8bd65d630b7c65e0ee2579bc385c99cb Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 13 Oct 2002 11:25:31 +0000 Subject: [PATCH] Use strlcpy instead of incorrectly using strncpy. MFC after: 2 weeks --- libexec/bootpd/getether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {