mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-02 20:37:48 +00:00
e1000: fix build on Ubuntu with _FORTIFY_SOURCE
There was a pointer cast warning on Ubuntu since _FORTIFY_SOURCE has been reenabled. _FORTIFY_SOURCE had been disabled by4a24470497
and reenabled by849583050d
. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
14da561698
commit
98835fe30f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue