From 5bd63dbad471c9a8a2da94e93ebe7e5182ceed4d Mon Sep 17 00:00:00 2001 From: Pavel Balaev Date: Wed, 16 Jul 2025 22:26:03 +0300 Subject: [PATCH] display: fix invalid usage of pointer --- src/channel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel_display.c b/src/channel_display.c index 0b08f58..e7bceac 100644 --- a/src/channel_display.c +++ b/src/channel_display.c @@ -136,7 +136,7 @@ static void resolveSpicePalette(const uint8_t * data, uint8_t ** ptr, if (offset) { *dst = (SpicePalette *)data + offset; - memcpy(dst_id, ptr, sizeof(*dst_id)); + memcpy(dst_id, *ptr, sizeof(*dst_id)); *ptr += sizeof(*dst_id); } else