From 982797df313c813e0bb69cffc31545fadcd2cc58 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Mon, 19 Nov 2018 20:05:47 +0000 Subject: [PATCH] fusee: Fix custom splash screen loading. --- fusee/fusee-secondary/src/splash_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusee/fusee-secondary/src/splash_screen.c b/fusee/fusee-secondary/src/splash_screen.c index 17cc302af..37cc63d9d 100644 --- a/fusee/fusee-secondary/src/splash_screen.c +++ b/fusee/fusee-secondary/src/splash_screen.c @@ -44,7 +44,7 @@ void display_splash_screen_bmp(const char *custom_splash_path, void *fb_address) /* Try to load an external custom splash screen. */ if ((custom_splash_path != NULL) && (custom_splash_path[0] != '\x00')) { - if (!read_from_file(splash_screen, sizeof(&splash_screen_bmp), custom_splash_path)) { + if (!read_from_file(splash_screen, splash_screen_bmp_size, custom_splash_path)) { fatal_error("Failed to read custom splash screen from %s!\n", custom_splash_path); } }