Skip to content

Commit

Permalink
(manual_content_scan) USe fill_pathname
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 17, 2025
1 parent a9b0e45 commit 9b5007a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions manual_content_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,6 @@ bool manual_content_scan_get_task_config(
manual_content_scan_task_config_t *task_config,
const char *path_dir_playlist)
{
size_t _len;
if (!task_config)
return false;

Expand Down Expand Up @@ -983,13 +982,11 @@ bool manual_content_scan_get_task_config(

/* Now we have a valid system name, can generate
* a 'database' name... */
_len = strlcpy(
fill_pathname(
task_config->database_name,
task_config->system_name,
sizeof(task_config->database_name));
strlcpy(task_config->database_name + _len,
".lpl",
sizeof(task_config->database_name) - _len);
sizeof(task_config->database_name));

/* ...which can in turn be used to generate the
* playlist path */
Expand Down

0 comments on commit 9b5007a

Please sign in to comment.