aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-03-06 08:04:41 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-06 08:04:41 (GMT)
commitd2f46a2b133e469d9405508b5202135164ed2b85 (patch)
tree9afbb93d8d00db021537eee7b9a3e41cf725e7f3 /src/drivers/driver_bsd.c
parent3812464cda18b98875d5c080faf9167dffc5078d (diff)
downloadhostap-d2f46a2b133e469d9405508b5202135164ed2b85.zip
hostap-d2f46a2b133e469d9405508b5202135164ed2b85.tar.gz
hostap-d2f46a2b133e469d9405508b5202135164ed2b85.tar.bz2
bsd: Use os_strlcpy instead of strlcpy
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index e567286..83c0422 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -1160,8 +1160,8 @@ wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)
ifan = (struct if_announcemsghdr *) rtm;
if (ifan->ifan_index != drv->ifindex)
break;
- strlcpy(event.interface_status.ifname, drv->ifname,
- sizeof(event.interface_status.ifname));
+ os_strlcpy(event.interface_status.ifname, drv->ifname,
+ sizeof(event.interface_status.ifname));
switch (ifan->ifan_what) {
case IFAN_DEPARTURE:
event.interface_status.ievent = EVENT_INTERFACE_REMOVED;
@@ -1229,8 +1229,8 @@ wpa_driver_bsd_event_receive(int sock, void *ctx, void *sock_ctx)
if (ifm->ifm_index != drv->ifindex)
break;
if ((rtm->rtm_flags & RTF_UP) == 0) {
- strlcpy(event.interface_status.ifname, drv->ifname,
- sizeof(event.interface_status.ifname));
+ os_strlcpy(event.interface_status.ifname, drv->ifname,
+ sizeof(event.interface_status.ifname));
event.interface_status.ievent = EVENT_INTERFACE_REMOVED;
wpa_printf(MSG_DEBUG, "RTM_IFINFO: Interface '%s' DOWN",
event.interface_status.ifname);