summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/cuesheet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index 354f976..b7b7df8 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
char *dot = strrchr(cuepath, '.');
strcpy(dot, ".cue");
if (!file_exists(cuepath))
- return false;
+ {
+ strlcpy(cuepath, track_id3->path, MAX_PATH);
+ strlcat(cuepath, ".cue", MAX_PATH);
+ if (!file_exists(cuepath))
+ return false;
+ }
}
strlcpy(cue_file->path, cuepath, MAX_PATH);