aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.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_atheros.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_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 2921afb..2547a43 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -894,7 +894,7 @@ static int atheros_set_qos_map(void *ctx, const u8 *qos_map_set,
memset(&req, 0, sizeof(struct ieee80211req_athdbg));
req.cmd = IEEE80211_DBGREQ_SETQOSMAPCONF;
os_memset(&iwr, 0, sizeof(iwr));
- os_strncpy(iwr.ifr_name, drv->iface, sizeof(iwr.ifr_name));
+ os_strlcpy(iwr.ifr_name, drv->iface, sizeof(iwr.ifr_name));
iwr.u.data.pointer = (void *) &req;
iwr.u.data.length = sizeof(struct ieee80211req_athdbg);
}
@@ -1385,7 +1385,7 @@ static void fetch_pending_big_events(struct atheros_driver_data *drv)
while (1) {
os_memset(&iwr, 0, sizeof(iwr));
- os_strncpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
+ os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
iwr.u.data.pointer = (void *) tbuf;
iwr.u.data.length = sizeof(tbuf);