mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #6555 from i30817/patch-1
Serial magic should only match on full match
This commit is contained in:
commit
f62ad312eb
@ -381,7 +381,7 @@ int detect_system(intfstream_t *fd, const char **system_name)
|
||||
if (read < MAGIC_LEN)
|
||||
continue;
|
||||
|
||||
if (string_is_equal(MAGIC_NUMBERS[i].magic, magic))
|
||||
if (memcmp(MAGIC_NUMBERS[i].magic, magic, MAGIC_LEN) == 0)
|
||||
{
|
||||
*system_name = MAGIC_NUMBERS[i].system_name;
|
||||
rv = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user