diff options
author | notaz | 2012-12-31 01:44:06 +0200 |
---|---|---|
committer | notaz | 2013-01-03 01:06:43 +0200 |
commit | 385c023b384751230a23604ab024ea5fb8cd1e90 (patch) | |
tree | cacc521bb9c9980ee837448dada196f3f8fd378d | |
parent | c69642c80a8f3333354a589b5dabdb17f0f23e9b (diff) | |
download | pcsx_rearmed-385c023b384751230a23604ab024ea5fb8cd1e90.tar.gz pcsx_rearmed-385c023b384751230a23604ab024ea5fb8cd1e90.tar.bz2 pcsx_rearmed-385c023b384751230a23604ab024ea5fb8cd1e90.zip |
cdriso: fix .cue file parsing
-rw-r--r-- | libpcsxcore/cdriso.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index f2886b0..1e30a63 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -499,7 +499,9 @@ static int parsecue(const char *isofile) { pregapOffset = -1; // mark to fill track start_offset } else if (!strcmp(token, "FILE")) { - sscanf(linebuf, " FILE \"%[^\"]\"", tmpb); + t = sscanf(linebuf, " FILE \"%256[^\"]\"", tmpb); + if (t != 1) + sscanf(linebuf, " FILE %256s", tmpb); // absolute path? ti[numtracks + 1].handle = fopen(tmpb, "rb"); |