diff --git a/hw/e1000.c b/hw/e1000.c index fd3059ad8a74183ae21180632a1b9e6def56c9ee..34cc451cf73b29ec11f099484d8e0219751e2894 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -642,7 +642,7 @@ e1000_receive(VLANClientState *nc, const uint8_t *buf, size_t size) if (vlan_enabled(s) && is_vlan_packet(s, buf)) { vlan_special = cpu_to_le16(be16_to_cpup((uint16_t *)(buf + 14))); - memmove((void *)(buf + 4), buf, 12); + memmove((uint8_t *)buf + 4, buf, 12); vlan_status = E1000_RXD_STAT_VP; vlan_offset = 4; size -= 4;