diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/cuesheet.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 354f976997..b7b7df85a8 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c | |||
@@ -75,7 +75,12 @@ bool look_for_cuesheet_file(struct mp3entry *track_id3, struct cuesheet_file *cu | |||
75 | char *dot = strrchr(cuepath, '.'); | 75 | char *dot = strrchr(cuepath, '.'); |
76 | strcpy(dot, ".cue"); | 76 | strcpy(dot, ".cue"); |
77 | if (!file_exists(cuepath)) | 77 | if (!file_exists(cuepath)) |
78 | return false; | 78 | { |
79 | strlcpy(cuepath, track_id3->path, MAX_PATH); | ||
80 | strlcat(cuepath, ".cue", MAX_PATH); | ||
81 | if (!file_exists(cuepath)) | ||
82 | return false; | ||
83 | } | ||
79 | } | 84 | } |
80 | 85 | ||
81 | strlcpy(cue_file->path, cuepath, MAX_PATH); | 86 | strlcpy(cue_file->path, cuepath, MAX_PATH); |