From 64fa597e19943452ae0fcf057830f5573ccf7d39 Mon Sep 17 00:00:00 2001 From: Willy-JL Date: Fri, 3 Feb 2023 05:01:00 +0000 Subject: [PATCH] Fix animation load fail, size too big --- applications/services/desktop/animations/animation_storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/services/desktop/animations/animation_storage.c b/applications/services/desktop/animations/animation_storage.c index c717b0c36..a80a958a3 100644 --- a/applications/services/desktop/animations/animation_storage.c +++ b/applications/services/desktop/animations/animation_storage.c @@ -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;