summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd/llc.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-02-08 11:15:56 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-02-08 11:15:56 +0000
commit9555dc19c4b186a1fb395bf91952864418cef077 (patch)
tree2c26e298d9cb79acb433769f3a95925a340008f6 /usr.sbin/hostapd/llc.c
parent1ec4ff493700968188321d942e0048454912776c (diff)
carefully check some return values and make lint happy. check for
truncation before feeding strings into the kernel.
Diffstat (limited to 'usr.sbin/hostapd/llc.c')
-rw-r--r--usr.sbin/hostapd/llc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hostapd/llc.c b/usr.sbin/hostapd/llc.c
index 2309e7270f4..82dfb7d3031 100644
--- a/usr.sbin/hostapd/llc.c
+++ b/usr.sbin/hostapd/llc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: llc.c,v 1.4 2005/12/18 17:54:12 reyk Exp $ */
+/* $OpenBSD: llc.c,v 1.5 2007/02/08 11:15:55 reyk Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
@@ -52,7 +52,7 @@ hostapd_llc_init(struct hostapd_config *cfg)
cfg->c_flags |= HOSTAPD_CFG_F_RAW;
bzero(&ifr, sizeof(struct ifreq));
- strlcpy(ifr.ifr_name, iapp->i_iface, sizeof(ifr.ifr_name));
+ (void)strlcpy(ifr.ifr_name, iapp->i_iface, sizeof(ifr.ifr_name));
/* Associate the wired network interface to the BPF descriptor */
if (ioctl(iapp->i_raw, BIOCSETIF, &ifr) == -1)