1
0
Fork 0

wifi: Change memmove to memcpy on OpenBSD

This commit is contained in:
Aaron Marcher 2018-05-17 18:08:31 +02:00
parent 7ab183c97f
commit ca8a146f03

View file

@ -122,7 +122,7 @@
return 0; return 0;
} }
strlcpy(nr->nr_ifname, iface, sizeof(nr->nr_ifname)); 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) { if ((ioctl(sockfd, SIOCG80211NODE, nr)) < 0 && nr->nr_rssi) {
fprintf(stderr, "ioctl 'SIOCG80211NODE': %s\n", fprintf(stderr, "ioctl 'SIOCG80211NODE': %s\n",
strerror(errno)); strerror(errno));