I have some flac files with '\' in filenames and flac displays wrong
basename when encoding/decoding these files. AFAIK win/dos systems
don't allow '/' in filenames, my suggestion is
--- src/flac/file.c.orig 2002-08-13 19:13:27.000000000 +0200
+++ src/flac/file.c 2002-09-12 15:10:20.000000000 +0200
@@ -64,9 +64,9 @@
{
const char *p;
- p = strrchr(srcpath, '\\');
+ p = strrchr(srcpath, '/');
if(0 == p) {
- p = strrchr(srcpath, '/');
+ p = strrchr(srcpath, '\\');
if(0 == p)
return srcpath;
}
--
Miroslav Lichvar