Use strlcpy instead of incorrectly using strncpy.

MFC after:	2 weeks
This commit is contained in:
Kris Kennaway 2002-10-13 11:25:31 +00:00
parent 56373a5196
commit 2386a44f8b

View File

@ -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) {