From d0df10ce333c43d67e38f60f887520f656197248 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 16 May 2021 18:51:05 +0200 Subject: [PATCH] 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 --- src/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index e76aa69..871d16f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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; -- 2.39.2