diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-11-11 22:46:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-11-11 22:46:31 +0000 |
commit | a6819ab65fde6bfb8a72a7574d579e10dea01303 (patch) | |
tree | 7e4462a6c7259be5a45095153ec55023d85c9f18 /sys/dev/usb | |
parent | d115ee763651afa578357d767e39e3168fc2303b (diff) |
strlcpy
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_udav.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index 507eb79ebf1..a22af50771b 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udav.c,v 1.2 2004/10/05 14:12:56 deraadt Exp $ */ +/* $OpenBSD: if_udav.c,v 1.3 2004/11/11 22:46:30 deraadt Exp $ */ /* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */ /* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */ /* @@ -293,7 +293,7 @@ USB_ATTACH(udav) ifp = GET_IFP(sc); ifp->if_softc = sc; ifp->if_mtu = ETHERMTU; - strncpy(ifp->if_xname, devname, IFNAMSIZ); + strlcpy(ifp->if_xname, devname, IFNAMSIZ); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_start = udav_start; ifp->if_ioctl = udav_ioctl; |