diff options
-rw-r--r-- | sys/dev/pci/if_bce.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_san_xilinx.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_aue.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_axe.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_cdce.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_cue.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_kue.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_upl.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_url.c | 4 |
9 files changed, 18 insertions, 18 deletions
diff --git a/sys/dev/pci/if_bce.c b/sys/dev/pci/if_bce.c index 30ebc94c4fa..65936265590 100644 --- a/sys/dev/pci/if_bce.c +++ b/sys/dev/pci/if_bce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bce.c,v 1.2 2004/09/01 21:11:50 millert Exp $ */ +/* $OpenBSD: if_bce.c,v 1.3 2004/11/10 10:14:47 grange Exp $ */ /* $NetBSD: if_bce.c,v 1.3 2003/09/29 01:53:02 mrg Exp $ */ /* @@ -399,7 +399,7 @@ bce_attach(parent, self, aux) /* Set up ifnet structure */ ifp = &sc->bce_ac.ac_if; - strncpy(ifp->if_xname, sc->bce_dev.dv_xname, IF_NAMESIZE); + strlcpy(ifp->if_xname, sc->bce_dev.dv_xname, IF_NAMESIZE); ifp->if_softc = sc; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = bce_ioctl; diff --git a/sys/dev/pci/if_san_xilinx.c b/sys/dev/pci/if_san_xilinx.c index ab80d1c8622..2153c5f8d97 100644 --- a/sys/dev/pci/if_san_xilinx.c +++ b/sys/dev/pci/if_san_xilinx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_xilinx.c,v 1.4 2004/07/16 15:11:45 alex Exp $ */ +/* $OpenBSD: if_san_xilinx.c,v 1.5 2004/11/10 10:14:47 grange Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -345,7 +345,7 @@ wan_xilinx_init(sdla_t *card) } - strncpy(sc->if_name, ifp->if_xname, IFNAMSIZ); + strlcpy(sc->if_name, ifp->if_xname, IFNAMSIZ); ifp->if_softc = sc; sc->common.card = card; sc->first_time_slot=-1; diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 91870b11272..649cee98114 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_aue.c,v 1.36 2004/10/31 00:37:40 jsg Exp $ */ +/* $OpenBSD: if_aue.c,v 1.37 2004/11/10 10:14:48 grange Exp $ */ /* $NetBSD: if_aue.c,v 1.82 2003/03/05 17:37:36 shiba Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -829,7 +829,7 @@ USB_ATTACH(aue) ifp->if_ioctl = aue_ioctl; ifp->if_start = aue_start; ifp->if_watchdog = aue_watchdog; - strncpy(ifp->if_xname, USBDEVNAME(sc->aue_dev), IFNAMSIZ); + strlcpy(ifp->if_xname, USBDEVNAME(sc->aue_dev), IFNAMSIZ); IFQ_SET_READY(&ifp->if_snd); diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index c5dc6830b04..a7fa46b7c00 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.12 2004/10/04 13:01:29 deraadt Exp $ */ +/* $OpenBSD: if_axe.c,v 1.13 2004/11/10 10:14:48 grange Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000-2003 @@ -517,7 +517,7 @@ USB_ATTACH(axe) /* Initialize interface info.*/ ifp = &sc->arpcom.ac_if; ifp->if_softc = sc; - strncpy(ifp->if_xname, devname, IFNAMSIZ); + strlcpy(ifp->if_xname, devname, IFNAMSIZ); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_ioctl = axe_ioctl; ifp->if_start = axe_start; 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); diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index f62b0e5f989..31777cb56f6 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cue.c,v 1.22 2004/09/23 17:45:17 brad Exp $ */ +/* $OpenBSD: if_cue.c,v 1.23 2004/11/10 10:14:48 grange Exp $ */ /* $NetBSD: if_cue.c,v 1.40 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -556,7 +556,7 @@ USB_ATTACH(cue) ifp->if_ioctl = cue_ioctl; ifp->if_start = cue_start; ifp->if_watchdog = cue_watchdog; - strncpy(ifp->if_xname, USBDEVNAME(sc->cue_dev), IFNAMSIZ); + strlcpy(ifp->if_xname, USBDEVNAME(sc->cue_dev), IFNAMSIZ); IFQ_SET_READY(&ifp->if_snd); diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index 4b188c63344..7aea22ebdc5 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_kue.c,v 1.28 2004/10/16 01:22:52 jsg Exp $ */ +/* $OpenBSD: if_kue.c,v 1.29 2004/11/10 10:14:48 grange Exp $ */ /* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -529,7 +529,7 @@ USB_ATTACH(kue) ifp->if_ioctl = kue_ioctl; ifp->if_start = kue_start; ifp->if_watchdog = kue_watchdog; - strncpy(ifp->if_xname, USBDEVNAME(sc->kue_dev), IFNAMSIZ); + strlcpy(ifp->if_xname, USBDEVNAME(sc->kue_dev), IFNAMSIZ); IFQ_SET_READY(&ifp->if_snd); diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c index 7b47052a43d..c9e3849621a 100644 --- a/sys/dev/usb/if_upl.c +++ b/sys/dev/usb/if_upl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_upl.c,v 1.16 2004/07/08 22:18:44 deraadt Exp $ */ +/* $OpenBSD: if_upl.c,v 1.17 2004/11/10 10:14:48 grange Exp $ */ /* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -319,7 +319,7 @@ USB_ATTACH(upl) ifp->if_ioctl = upl_ioctl; ifp->if_start = upl_start; ifp->if_watchdog = upl_watchdog; - strncpy(ifp->if_xname, USBDEVNAME(sc->sc_dev), IFNAMSIZ); + strlcpy(ifp->if_xname, USBDEVNAME(sc->sc_dev), IFNAMSIZ); ifp->if_type = IFT_OTHER; ifp->if_addrlen = 0; diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index 7712ee411cd..39e9b84b2a6 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.17 2004/10/16 01:28:45 jsg Exp $ */ +/* $OpenBSD: if_url.c,v 1.18 2004/11/10 10:14:48 grange Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -290,7 +290,7 @@ USB_ATTACH(url) /* initialize interface infomation */ ifp = GET_IFP(sc); ifp->if_softc = sc; - strncpy(ifp->if_xname, devname, IFNAMSIZ); + strlcpy(ifp->if_xname, devname, IFNAMSIZ); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; ifp->if_start = url_start; ifp->if_ioctl = url_ioctl; |