Xinqi Bao's Git
projects
/
slstatus.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
7ab183c
)
wifi: Change memmove to memcpy on OpenBSD
author
Aaron Marcher <
[email protected]
>
Thu, 17 May 2018 16:08:31 +0000
(18:08 +0200)
committer
Aaron Marcher <
[email protected]
>
Thu, 17 May 2018 16:08:31 +0000
(18:08 +0200)
components/wifi.c
diff
|
blob
|
history
diff --git
a/components/wifi.c
b/components/wifi.c
index
473c8a7
..
339667f
100644
(file)
--- a/
components/wifi.c
+++ b/
components/wifi.c
@@
-122,7
+122,7
@@
return 0;
}
strlcpy(nr->nr_ifname, iface, sizeof(nr->nr_ifname));
return 0;
}
strlcpy(nr->nr_ifname, iface, sizeof(nr->nr_ifname));
- mem
move
(&nr->nr_macaddr, bssid.i_bssid, sizeof(nr->nr_macaddr));
+ mem
cpy
(&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));
if ((ioctl(sockfd, SIOCG80211NODE, nr)) < 0 && nr->nr_rssi) {
fprintf(stderr, "ioctl 'SIOCG80211NODE': %s\n",
strerror(errno));