A small config.c fix and the Acrosser AR-B1479 now uses the Winbond W29C020 Flash chip.

This commit is contained in:
OBattler
2021-08-10 16:19:37 +02:00
parent 03d91af98c
commit 0b1000ec19
2 changed files with 3 additions and 3 deletions

View File

@@ -1112,12 +1112,12 @@ load_storage_controllers(void)
if (strlen(p) > 511)
fatal("load_storage_controllers(): strlen(p) > 511\n");
else
strncpy(cassette_fname, p, strlen(p) + 1);
strncpy(cassette_fname, p, MIN(511, strlen(p) + 1));
p = config_get_string(cat, "cassette_mode", "");
if (strlen(p) > 511)
fatal("load_storage_controllers(): strlen(p) > 511\n");
else
strncpy(cassette_mode, p, strlen(p) + 1);
strncpy(cassette_mode, p, MIN(511, strlen(p) + 1));
cassette_pos = config_get_int(cat, "cassette_position", 0);
cassette_srate = config_get_int(cat, "cassette_srate", 44100);
cassette_append = !!config_get_int(cat, "cassette_append", 0);

View File

@@ -1310,7 +1310,7 @@ machine_at_arb1479_init(const machine_t *model)
device_add(&w83977f_device);
device_add(&keyboard_ps2_ami_pci_device);
device_add(&stpc_consumer2_device);
device_add(&sst_flash_39sf020_device);
device_add(&winbond_flash_w29c020_device);
return ret;
}