Re: [hackers] [slstatus] wifi: Change memmove to memcpy on OpenBSD || Aaron Marcher
why
On 5/17/18, git_AT_suckless.org <git_AT_suckless.org> wrote:
> commit ca8a146f03622149fbf9378e72b6ca02f25c5e55
> Author: Aaron Marcher <me_AT_drkhsh.at>
> AuthorDate: Thu May 17 18:08:31 2018 +0200
> Commit: Aaron Marcher <me_AT_drkhsh.at>
> CommitDate: Thu May 17 18:08:31 2018 +0200
>
> wifi: Change memmove to memcpy on OpenBSD
>
> diff --git a/components/wifi.c b/components/wifi.c
> index 473c8a7..339667f 100644
> --- a/components/wifi.c
> +++ b/components/wifi.c
> _AT_@ -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));
>
>
Received on Thu May 17 2018 - 22:29:47 CEST
This archive was generated by hypermail 2.3.0
: Thu May 17 2018 - 22:36:24 CEST