projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab183c
)
wifi: Change memmove to memcpy on OpenBSD
author
Aaron Marcher
<me@drkhsh.at>
Thu, 17 May 2018 16:08:31 +0000
(18:08 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Thu, 17 May 2018 16:08:31 +0000
(18:08 +0200)
components/wifi.c
patch
|
blob
|
history
diff --git
a/components/wifi.c
b/components/wifi.c
index 473c8a7fe041b8b938c7a278286f37af6b95a780..339667fb45cf583e1a87285367eae6d4b91d1fa1 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));
- 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));