From 772620f6fabbd0b05e7a262e5cbbcfe717553f14 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Mon, 23 Dec 2024 06:33:43 +0100 Subject: [PATCH] gfx_widget_load_content_animation - use fill_pathname more --- gfx/widgets/gfx_widget_load_content_animation.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gfx/widgets/gfx_widget_load_content_animation.c b/gfx/widgets/gfx_widget_load_content_animation.c index 84cd6b3507..8d2112eb77 100644 --- a/gfx/widgets/gfx_widget_load_content_animation.c +++ b/gfx/widgets/gfx_widget_load_content_animation.c @@ -445,11 +445,10 @@ bool gfx_widget_start_load_content_animation(void) * > Use db_name, if available */ if (has_db_name) { - size_t len = strlcpy(state->icon_file, state->system_name, - sizeof(state->icon_file)); - strlcpy(state->icon_file + len, + size_t len = fill_pathname(state->icon_file, + state->system_name, ".png", - sizeof(state->icon_file) - len); + sizeof(state->icon_file)); fill_pathname_join_special(icon_path, state->icon_directory, state->icon_file, @@ -477,11 +476,10 @@ bool gfx_widget_start_load_content_animation(void) if ( !string_is_empty(core_db_name) && !string_is_equal(core_db_name, state->system_name)) { - size_t len = strlcpy(state->icon_file, core_db_name, - sizeof(state->icon_file)); - strlcpy(state->icon_file + len, + size_t len = fill_pathname(state->icon_file, + core_db_name, ".png", - sizeof(state->icon_file) - len); + sizeof(state->icon_file)); fill_pathname_join_special(icon_path, state->icon_directory, state->icon_file,