(task_content_disc.c) Use fill_pathname

This commit is contained in:
LibretroAdmin 2024-12-30 10:29:06 +01:00
parent b4cf279b80
commit 707f19640a

View File

@ -159,11 +159,9 @@ static void task_cdrom_dump_handler(retro_task_t *task)
filestream_close(state->file); filestream_close(state->file);
_len = strlcpy(cue_filename, _len = fill_pathname(cue_filename,
state->title, sizeof(cue_filename)); state->title,
strlcpy(cue_filename + _len, ".cue", sizeof(cue_filename));
".cue",
sizeof(cue_filename) - _len);
fill_pathname_join_special(output_file, fill_pathname_join_special(output_file,
directory_core_assets, cue_filename, sizeof(output_file)); directory_core_assets, cue_filename, sizeof(output_file));