mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 04:44:02 +00:00
Build fixes
This commit is contained in:
parent
097da7ca9d
commit
78185be8bf
@ -350,13 +350,12 @@ static int database_info_iterate_playlist_cue(
|
||||
database_info_handle_t *db, const char *name)
|
||||
{
|
||||
int rv;
|
||||
char track_path[PATH_MAX];
|
||||
char track_path[PATH_MAX_LENGTH];
|
||||
int32_t offset = 0;
|
||||
const char* system_name = NULL;
|
||||
size_t max_len = MAX_TOKEN_LEN;
|
||||
char game_id[4096];
|
||||
|
||||
rv = find_first_data_track(name, &offset, track_path, PATH_MAX);
|
||||
rv = find_first_data_track(name, &offset, track_path, PATH_MAX_LENGTH);
|
||||
if (rv < 0)
|
||||
{
|
||||
RARCH_LOG("Could not find valid data track: %s\n", strerror(-rv));
|
||||
|
@ -126,10 +126,6 @@ int find_token(int fd, const char *token)
|
||||
|
||||
int detect_ps1_game(const char *track_path, char *game_id)
|
||||
{
|
||||
int i;
|
||||
const char *pat_c;
|
||||
char *c, *id_start;
|
||||
const char *pattern = "cdrom:";
|
||||
int fd = open(track_path, O_RDONLY);
|
||||
|
||||
if (fd < 0)
|
||||
@ -199,10 +195,10 @@ int find_first_data_track(const char *cue_path,
|
||||
int rv;
|
||||
char tmp_token[MAX_TOKEN_LEN];
|
||||
int m, s, f;
|
||||
char cue_dir[PATH_MAX];
|
||||
char cue_dir[PATH_MAX_LENGTH];
|
||||
int fd = -1;
|
||||
|
||||
strlcpy(cue_dir, cue_path, PATH_MAX);
|
||||
strlcpy(cue_dir, cue_path, PATH_MAX_LENGTH);
|
||||
path_basedir(cue_dir);
|
||||
|
||||
fd = open(cue_path, O_RDONLY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user