5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-22 13:34:06 +03:00

SimpleSpiceUpdate struct needs to be packed

else the compiler guarantees alignment to 8 bytes only, but we need 1
byte to match the library's ABI.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-16 18:51:05 +02:00
parent e9120d9af3
commit d0df10ce33

View File

@ -69,7 +69,7 @@ int default_blu[] = {0x00,0x00,0x00,0x00,0xaa,0xaa,0xaa,0xaa,
/* Parts cribbed from spice-display.h/.c/qxl.c */
typedef struct SimpleSpiceUpdate {
typedef struct __attribute__ ((__packed__)) SimpleSpiceUpdate {
QXLCommandExt ext; // needs to be first member
QXLDrawable drawable;
QXLImage image;