mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Fix CRC32 reading in explore
If CRC32 contained a zero byte strlen doesn't work
This commit is contained in:
parent
bdba803909
commit
39275e8ce3
@ -596,7 +596,7 @@ static explore_state_t *explore_build_list(settings_t *settings)
|
||||
key_str = key->val.string.buff;
|
||||
if (string_is_equal(key_str, "crc"))
|
||||
{
|
||||
switch (strlen(val->val.binary.buff))
|
||||
switch (val->val.binary.len)
|
||||
{
|
||||
case 1:
|
||||
crc32 = *(uint8_t*)val->val.binary.buff;
|
||||
|
Loading…
x
Reference in New Issue
Block a user