Introduced the NVR hacks to the remaining boards with cache errors.

This commit is contained in:
OBattler
2021-11-30 00:25:03 +01:00
parent f7177cc27a
commit c0a66022d4
7 changed files with 71 additions and 46 deletions

View File

@@ -1155,12 +1155,12 @@ load_storage_controllers(void)
if (strlen(p) > 511)
fatal("load_storage_controllers(): strlen(p) > 511\n");
else
strncpy(cassette_fname, p, MIN(511, strlen(p) + 1));
strncpy(cassette_fname, p, MIN(512, 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, MIN(511, strlen(p) + 1));
strncpy(cassette_mode, p, MIN(512, 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);