From 4b293285ea04df6c8ca04ec01f1b4729d285d379 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 7 May 2022 16:28:27 +0100 Subject: [PATCH] pictureflow: fix album index alignment in load_album_index Change-Id: I7c3c86ffdab62859ce88faeeb84160ea52a4626a --- apps/plugins/pictureflow/pictureflow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c index b2d170329e..a2782b6a2b 100644 --- a/apps/plugins/pictureflow/pictureflow.c +++ b/apps/plugins/pictureflow/pictureflow.c @@ -1628,6 +1628,7 @@ static int load_album_index(void){ buf_size -= data.album_len; /* index of album names */ + ALIGN_BUFFER(buf, buf_size, alignof(struct album_data)); if (read2buf(fr, buf, album_idx_sz) == 0) goto failure;