diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-11-10 10:14:49 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-11-10 10:14:49 +0000 |
commit | e01f858304c90d8e526ba2f25285213689feaeac (patch) | |
tree | b1c51b2423efdd29cf2b1fe98095f46a935ae4a2 /sys/dev/usb/if_axe.c | |
parent | ad6b1c4aa825c9a66c12deeee920594892ee8c84 (diff) |
strncpy->strlcpy
ok henning@
Diffstat (limited to 'sys/dev/usb/if_axe.c')
-rw-r--r-- | sys/dev/usb/if_axe.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |