diff options
| author | 2004-11-10 10:14:47 +0000 | |
|---|---|---|
| committer | 2004-11-10 10:14:47 +0000 | |
| commit | 118ea0955b1ce42f4c7f27284401b5f2a97199ba (patch) | |
| tree | d773b079a25070e38023d1857df9de381982e156 /sys/dev/usb/if_upl.c | |
| parent | use ExtraInfo, finally: allows pkg_info to report packages according to (diff) | |
| download | wireguard-openbsd-118ea0955b1ce42f4c7f27284401b5f2a97199ba.tar.xz wireguard-openbsd-118ea0955b1ce42f4c7f27284401b5f2a97199ba.zip | |
strncpy->strlcpy
ok henning@
Diffstat (limited to 'sys/dev/usb/if_upl.c')
| -rw-r--r-- | sys/dev/usb/if_upl.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
