diff options
| author | 2013-06-11 18:45:08 +0000 | |
|---|---|---|
| committer | 2013-06-11 18:45:08 +0000 | |
| commit | 9b2ad23f60c1138d2839cb37fbe1c515e671ef58 (patch) | |
| tree | ca332b71644d1634f3cbae3ea21b11c190e57245 /sys/dev/usb/if_uath.c | |
| parent | Add files for the sitara (am335x) Control Module driver. (diff) | |
| download | wireguard-openbsd-9b2ad23f60c1138d2839cb37fbe1c515e671ef58.tar.xz wireguard-openbsd-9b2ad23f60c1138d2839cb37fbe1c515e671ef58.zip | |
Replace more ovbcopy with memmove; swap the src and dst arguments too
Diffstat (limited to 'sys/dev/usb/if_uath.c')
| -rw-r--r-- | sys/dev/usb/if_uath.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c index e345ab63174..77ef42e0388 100644 --- a/sys/dev/usb/if_uath.c +++ b/sys/dev/usb/if_uath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_uath.c,v 1.54 2013/04/15 09:23:01 mglocker Exp $ */ +/* $OpenBSD: if_uath.c,v 1.55 2013/06/11 18:45:25 deraadt Exp $ */ /*- * Copyright (c) 2006 @@ -1254,8 +1254,8 @@ uath_data_rxeof(struct usbd_xfer *xfer, void *priv, * fields. */ wh->i_fc[1] &= ~IEEE80211_FC1_WEP; - ovbcopy(wh, (caddr_t)wh + IEEE80211_WEP_IVLEN + - IEEE80211_WEP_KIDLEN, sizeof (struct ieee80211_frame)); + memmove((caddr_t)wh + IEEE80211_WEP_IVLEN + + IEEE80211_WEP_KIDLEN, wh, sizeof (struct ieee80211_frame)); m_adj(m, IEEE80211_WEP_IVLEN + IEEE80211_WEP_KIDLEN); m_adj(m, -IEEE80211_WEP_CRCLEN); wh = mtod(m, struct ieee80211_frame *); |
