From 0a7b409a0465ad2fed9e374e6c06d22715f98395 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Sat, 28 Dec 2024 19:41:10 +0100 Subject: [PATCH] (runtime_file.c) Use fill_pathname --- runtime_file.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/runtime_file.c b/runtime_file.c index 4ec5a3c4d14..5055bfa4a61 100644 --- a/runtime_file.c +++ b/runtime_file.c @@ -317,10 +317,8 @@ runtime_log_t *runtime_log_init( * no content is provided, 'content' is simply * the name of the core itself */ if (supports_no_game) - { - size_t _len = strlcpy(content_name, core_name, sizeof(content_name)); - strlcpy(content_name + _len, ".lrtl", sizeof(content_name) - _len); - } + fill_pathname(content_name, core_name, + ".lrtl", sizeof(content_name)); } /* NOTE: TyrQuake requires a specific hack, since all * content has the same name... */ @@ -1244,8 +1242,8 @@ void runtime_update_playlist( * to be populated even when no runtime is recorded */ if (update_entry.runtime_status != PLAYLIST_RUNTIME_VALID) { - if (string_is_equal(menu_ident, "ozone") || - string_is_equal(menu_ident, "glui")) + if ( string_is_equal(menu_ident, "ozone") + || string_is_equal(menu_ident, "glui")) { runtime_log_get_runtime_str(NULL, runtime_str, sizeof(runtime_str));