summaryrefslogtreecommitdiff
path: root/components/wifi.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-05-17 18:08:31 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-17 18:08:31 +0200
commitca8a146f03622149fbf9378e72b6ca02f25c5e55 (patch)
tree56c146c8c4705a66d55998df2029a52ee2bf7795 /components/wifi.c
parent7ab183c97f2de4eee3fa47a4c060740d45835541 (diff)
wifi: Change memmove to memcpy on OpenBSD
Diffstat (limited to 'components/wifi.c')
-rw-r--r--components/wifi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/wifi.c b/components/wifi.c
index 473c8a7..339667f 100644
--- a/components/wifi.c
+++ b/components/wifi.c
@@ -122,7 +122,7 @@
return 0;
}
strlcpy(nr->nr_ifname, iface, sizeof(nr->nr_ifname));
- memmove(&nr->nr_macaddr, bssid.i_bssid, sizeof(nr->nr_macaddr));
+ memcpy(&nr->nr_macaddr, bssid.i_bssid, sizeof(nr->nr_macaddr));
if ((ioctl(sockfd, SIOCG80211NODE, nr)) < 0 && nr->nr_rssi) {
fprintf(stderr, "ioctl 'SIOCG80211NODE': %s\n",
strerror(errno));