diff options
Diffstat (limited to 'audio/libmp3splt/files/patch-cddb.c')
-rw-r--r-- | audio/libmp3splt/files/patch-cddb.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/libmp3splt/files/patch-cddb.c b/audio/libmp3splt/files/patch-cddb.c new file mode 100644 index 000000000000..a479194792ed --- /dev/null +++ b/audio/libmp3splt/files/patch-cddb.c @@ -0,0 +1,19 @@ +--- src/cddb.c.orig ++++ src/cddb.c +@@ -393,6 +393,16 @@ + //we read the file line by line + while (fgets(line, 2048, file_input)!=NULL) + { ++ //if windows file with '\r', then pretend is a unix file ++ if (strlen(line) > 1) ++ { ++ if (line[strlen(line)-2] == '\r') ++ { ++ line[strlen(line)-2] = '\n'; ++ line[strlen(line)-1] = '\0'; ++ } ++ } ++ + type = SPLT_CUE_NOTHING; + + //we read strings from file TRACK,TITLE,AUDIO,PERFORMER,INDEX |