Fix animation load fail, size too big

This commit is contained in:
Willy-JL
2023-02-03 05:01:00 +00:00
parent e33023463a
commit 64fa597e19

View File

@@ -336,7 +336,7 @@ static bool animation_storage_load_frames(
FileInfo file_info;
FuriString* filename;
filename = furi_string_alloc();
size_t max_filesize = ROUND_UP_TO(width, 8) * height + 1;
size_t max_filesize = ROUND_UP_TO(width, 8) * height + 2;
for(int i = 0; i < icon->frame_count; ++i) {
frames_ok = false;