pictureflow: fix album index alignment in load_album_index

Change-Id: I7c3c86ffdab62859ce88faeeb84160ea52a4626a
This commit is contained in:
Aidan MacDonald 2022-05-07 16:28:27 +01:00
parent f661dc596e
commit 4b293285ea

View file

@ -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;