diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-08-19 19:53:47 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-08-19 19:53:47 +0000 |
| commit | 7a2bc23c5401fe689bab659b46dd6443f1f8a744 (patch) | |
| tree | b14ae0ca4a1bb065fb445660f8f594251b0794f7 /libpcsxcore | |
| parent | da0bd5088116f8c984880cc6a15c83532f558753 (diff) | |
| download | pcsxr-7a2bc23c5401fe689bab659b46dd6443f1f8a744.tar.gz | |
Small fixes. 11833, 11834 (Lioncash);
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@91261 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
| -rwxr-xr-x | libpcsxcore/misc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 581e6db9..f0f1c4ee 100755 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -174,9 +174,9 @@ int LoadCdrom() { // read the SYSTEM.CNF READTRACK(); - sscanf((char *)buf + 12, "BOOT = cdrom:\\%256s", exename); + sscanf((char *)buf + 12, "BOOT = cdrom:\\%255s", exename); if (GetCdromFile(mdir, time, exename) == -1) { - sscanf((char *)buf + 12, "BOOT = cdrom:%256s", exename); + sscanf((char *)buf + 12, "BOOT = cdrom:%255s", exename); if (GetCdromFile(mdir, time, exename) == -1) { char *ptr = strstr(buf + 12, "cdrom:"); if (ptr != NULL) { @@ -230,7 +230,7 @@ int LoadCdromFile(const char *filename, EXE_HEADER *head) { u8 mdir[4096], exename[256]; u32 size, addr; - sscanf(filename, "cdrom:\\%256s", exename); + sscanf(filename, "cdrom:\\%255s", exename); time[0] = itob(0); time[1] = itob(2); time[2] = itob(0x10); @@ -299,9 +299,9 @@ int CheckCdrom() { if (GetCdromFile(mdir, time, "SYSTEM.CNF;1") != -1) { READTRACK(); - sscanf((char *)buf + 12, "BOOT = cdrom:\\%256s", exename); + sscanf((char *)buf + 12, "BOOT = cdrom:\\%255s", exename); if (GetCdromFile(mdir, time, exename) == -1) { - sscanf((char *)buf + 12, "BOOT = cdrom:%256s", exename); + sscanf((char *)buf + 12, "BOOT = cdrom:%255s", exename); if (GetCdromFile(mdir, time, exename) == -1) { char *ptr = strstr(buf + 12, "cdrom:"); // possibly the executable is in some subdir if (ptr != NULL) { |
