]> git.proxmox.com Git - spiceterm.git/commitdiff
SimpleSpiceUpdate struct needs to be packed
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 16 May 2021 16:51:05 +0000 (18:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 16 May 2021 16:51:08 +0000 (18:51 +0200)
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>
src/screen.c

index e76aa69674c01b4093b7c4f4b23fa76f2d74f1e2..871d16fea88caad6baeb77ebb9fa61607f030950 100644 (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;