aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-26 08:42:09 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-26 12:54:47 (GMT)
commit24f051eb148dacaaa000a2d200a77590d3bab363 (patch)
tree6a491fb6899fe550a1c7779466dbc394f389b757 /src/drivers/driver_bsd.c
parent41c526f35754436e47b27e228b8e659c50cc5e25 (diff)
downloadhostap-24f051eb148dacaaa000a2d200a77590d3bab363.zip
hostap-24f051eb148dacaaa000a2d200a77590d3bab363.tar.gz
hostap-24f051eb148dacaaa000a2d200a77590d3bab363.tar.bz2
Replace remainining strncpy() uses with strlcpy()
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 4acb12b..45d6b19 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -72,7 +72,7 @@ get80211opmode(struct bsd_driver_data *drv)
struct ifmediareq ifmr;
(void) memset(&ifmr, 0, sizeof(ifmr));
- (void) strncpy(ifmr.ifm_name, drv->ifname, sizeof(ifmr.ifm_name));
+ (void) os_strlcpy(ifmr.ifm_name, drv->ifname, sizeof(ifmr.ifm_name));
if (ioctl(drv->sock, SIOCGIFMEDIA, (caddr_t)&ifmr) >= 0) {
if (ifmr.ifm_current & IFM_IEEE80211_ADHOC) {