Skip to content

Commit 582cdcb

Browse files
committed
pass correct max length to fill_pathname
fixes libretro#18409
1 parent 66b9448 commit 582cdcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/task_database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ static int database_info_list_iterate_found_match(
903903
if (delim)
904904
*delim = '\0';
905905
fill_pathname(entry_lbl,
906-
path_basename_nocompression(entry_path), "", str_len);
906+
path_basename_nocompression(entry_path), "", sizeof(entry_lbl));
907907

908908
RARCH_LOG("[Scanner] Faulty match for: \"%s\", CRC: 0x%08X\n", entry_path_str, db_state->crc);
909909
}

0 commit comments

Comments
 (0)