diff options
Diffstat (limited to 'sys/dev/usb/if_cdce.c')
-rw-r--r-- | sys/dev/usb/if_cdce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index a276c8c441e..eb6678dd0b6 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cdce.c,v 1.5 2004/09/23 17:45:17 brad Exp $ */ +/* $OpenBSD: if_cdce.c,v 1.6 2004/11/10 10:14:48 grange Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com> @@ -232,7 +232,7 @@ USB_ATTACH(cdce) ifp->if_ioctl = cdce_ioctl; ifp->if_start = cdce_start; ifp->if_watchdog = cdce_watchdog; - strncpy(ifp->if_xname, USBDEVNAME(sc->cdce_dev), IFNAMSIZ); + strlcpy(ifp->if_xname, USBDEVNAME(sc->cdce_dev), IFNAMSIZ); IFQ_SET_READY(&ifp->if_snd); |