mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
(task_database.c) Use fill_pathname_join_delim in task_database.c
This commit is contained in:
parent
324cf09deb
commit
5d576ce61d
@ -678,7 +678,7 @@ void fill_pathname_join_delim(char *out_path, const char *dir,
|
||||
size_t copied = strlcpy(out_path, dir, size);
|
||||
rarch_assert(copied < size+1);
|
||||
|
||||
out_path[copied]=delim;
|
||||
out_path[copied] = delim;
|
||||
out_path[copied+1] = '\0';
|
||||
|
||||
rarch_assert(strlcat(out_path, path, size) < size);
|
||||
|
@ -188,11 +188,10 @@ static int database_info_list_iterate_found_match(
|
||||
snprintf(db_crc, sizeof(db_crc), "%08X|crc", db_info_entry->crc32);
|
||||
|
||||
strlcpy(entry_path_str, entry_path, sizeof(entry_path_str));
|
||||
|
||||
if (zip_name && zip_name[0] != '\0')
|
||||
{
|
||||
strlcat(entry_path_str, "#", sizeof(entry_path_str));
|
||||
strlcat(entry_path_str, zip_name, sizeof(entry_path_str));
|
||||
}
|
||||
fill_pathname_join_delim(entry_path_str, entry_path_str, zip_name,
|
||||
'#', sizeof(entry_path_str));
|
||||
|
||||
#if 0
|
||||
RARCH_LOG("Found match in database !\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user