diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2002-10-13 11:25:31 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2002-10-13 11:25:31 +0000 |
| commit | 2386a44f8bd65d630b7c65e0ee2579bc385c99cb (patch) | |
| tree | 466ffcbed89213a8896f76b28d29d88e5c714a4e /libexec/bootpd | |
| parent | 56373a5196b5b5da3caeb22b1147f0c933785dcd (diff) | |
Notes
Diffstat (limited to 'libexec/bootpd')
| -rw-r--r-- | libexec/bootpd/getether.c | 2 |
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) { |
