wifi: Change memmove to memcpy on OpenBSD
Aaron Marcher me@drkhsh.at
Thu, 17 May 2018 18:08:31 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
components/wifi.c
→
components/wifi.c
@@ -122,7 +122,7 @@ close(sockfd);
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));