From: notaz Date: Sun, 30 Dec 2012 23:44:06 +0000 (+0200) Subject: cdriso: fix .cue file parsing X-Git-Tag: r18~24 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=385c023b384751230a23604ab024ea5fb8cd1e90;p=pcsx_rearmed.git cdriso: fix .cue file parsing --- diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index f2886b03..1e30a634 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");