summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-11-10 10:14:49 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-11-10 10:14:49 +0000
commite01f858304c90d8e526ba2f25285213689feaeac (patch)
treeb1c51b2423efdd29cf2b1fe98095f46a935ae4a2 /sys/dev/usb
parentad6b1c4aa825c9a66c12deeee920594892ee8c84 (diff)
strncpy->strlcpy
ok henning@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/if_aue.c4
-rw-r--r--sys/dev/usb/if_axe.c4
-rw-r--r--sys/dev/usb/if_cdce.c4
-rw-r--r--sys/dev/usb/if_cue.c4
-rw-r--r--sys/dev/usb/if_kue.c4
-rw-r--r--sys/dev/usb/if_upl.c4
-rw-r--r--sys/dev/usb/if_url.c4
7 files changed, 14 insertions, 14 deletions
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;