diff options
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index bbdc93746e..2fe24d0a40 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c | |||
@@ -66,7 +66,8 @@ static bool search_for_cuesheet(const char *path, struct cuesheet_file *cue_file | |||
66 | if (strlcat(cuepath, slash, MAX_PATH) >= MAX_PATH) | 66 | if (strlcat(cuepath, slash, MAX_PATH) >= MAX_PATH) |
67 | goto skip; /* overflow */ | 67 | goto skip; /* overflow */ |
68 | dot = strrchr(cuepath, '.'); | 68 | dot = strrchr(cuepath, '.'); |
69 | strcpy(dot, ".cue"); | 69 | if (dot) |
70 | strcpy(dot, ".cue"); | ||
70 | if (!file_exists(cuepath)) | 71 | if (!file_exists(cuepath)) |
71 | { | 72 | { |
72 | skip: | 73 | skip: |