diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-11 18:45:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-06-11 18:45:26 +0000 |
commit | b46bdc87d12f64a73dd9be1af6eea4e8c42f227e (patch) | |
tree | 70c07c6df6c2cea4116582978f0d5a102f654fdb /sys/dev/usb/if_uath.c | |
parent | d463db000ec6f49b81563d02591955f8ebe11984 (diff) |
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 *); |