From 707f19640aa17458bf3454b6dd66b7064f368c14 Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Mon, 30 Dec 2024 10:29:06 +0100 Subject: [PATCH] (task_content_disc.c) Use fill_pathname --- tasks/task_content_disc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tasks/task_content_disc.c b/tasks/task_content_disc.c index 4b195d044a8f..8f89a75f9db4 100755 --- a/tasks/task_content_disc.c +++ b/tasks/task_content_disc.c @@ -159,11 +159,9 @@ static void task_cdrom_dump_handler(retro_task_t *task) filestream_close(state->file); - _len = strlcpy(cue_filename, - state->title, sizeof(cue_filename)); - strlcpy(cue_filename + _len, - ".cue", - sizeof(cue_filename) - _len); + _len = fill_pathname(cue_filename, + state->title, + ".cue", sizeof(cue_filename)); fill_pathname_join_special(output_file, directory_core_assets, cue_filename, sizeof(output_file));