pictureflow: fix album index alignment in load_album_index
Change-Id: I7c3c86ffdab62859ce88faeeb84160ea52a4626a
This commit is contained in:
parent
f661dc596e
commit
4b293285ea
1 changed files with 1 additions and 0 deletions
|
@ -1628,6 +1628,7 @@ static int load_album_index(void){
|
||||||
buf_size -= data.album_len;
|
buf_size -= data.album_len;
|
||||||
|
|
||||||
/* index of album names */
|
/* index of album names */
|
||||||
|
ALIGN_BUFFER(buf, buf_size, alignof(struct album_data));
|
||||||
if (read2buf(fr, buf, album_idx_sz) == 0)
|
if (read2buf(fr, buf, album_idx_sz) == 0)
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue