Merge pull request #12733 from schellingb/explore_fixcrc32read

Fix CRC32 reading in explore menu
This commit is contained in:
Autechre 2021-08-03 19:53:01 +02:00 committed by GitHub
commit 49632bbde9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;