diff --git a/yabause/src/ctrl/src/stv.c b/yabause/src/ctrl/src/stv.c index 8e86e6ed9..5677d1a42 100644 --- a/yabause/src/ctrl/src/stv.c +++ b/yabause/src/ctrl/src/stv.c @@ -2455,9 +2455,7 @@ int processBios(JZFile *zip,void *input) { //LOGSTV("%s, %d / %d bytes at offset %08X\n", filename, header.compressedSize, header.uncompressedSize, header.offset); j=0; while(BiosList.blobs[j].type != GAME_END) { - if (header.crc32 == BiosList.blobs[j].crc32) { - // file is the same but has a different filename, let's replace it - strncpy(BiosList.blobs[j].filename, filename, MAX_LENGTH_FILENAME); + if ((header.crc32 == BiosList.blobs[j].crc32) && (strcmp(BiosList.blobs[j].filename,filename)==0)) { //Compatible file found biosFound[j] = 1; } @@ -2487,9 +2485,7 @@ int processFile(JZFile *zip,void *input) { for (i=0; ifilename,GameList[i].romset);