Merge pull request #1798 from Cacodemon345/patch-20

Fix startup crash on macOS when loading floppy images
This commit is contained in:
Miran Grča
2021-11-13 00:02:45 +01:00
committed by GitHub

View File

@@ -497,7 +497,7 @@ fdd_load(int drive, char *fn)
while (loaders[c].ext) {
if (!strcasecmp(p, (char *) loaders[c].ext) && (size == loaders[c].size || loaders[c].size == -1)) {
driveloaders[drive] = c;
strcpy(floppyfns[drive], fn);
if (floppyfns[drive] != fn) strcpy(floppyfns[drive], fn);
d86f_setup(drive);
loaders[c].load(drive, floppyfns[drive]);
drive_empty[drive] = 0;