Fix CRC32 reading in explore

If CRC32 contained a zero byte strlen doesn't work
This commit is contained in:
Bernhard Schelling 2021-08-03 23:38:37 +09:00 committed by GitHub
parent bdba803909
commit 39275e8ce3
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;