From 39275e8ce3d6e486bb983fce4c6e306fb80f03c2 Mon Sep 17 00:00:00 2001 From: Bernhard Schelling <14200249+schellingb@users.noreply.github.com> Date: Tue, 3 Aug 2021 23:38:37 +0900 Subject: [PATCH] Fix CRC32 reading in explore If CRC32 contained a zero byte strlen doesn't work --- menu/menu_explore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu/menu_explore.c b/menu/menu_explore.c index 7e55c28bb5..fc25b26b14 100644 --- a/menu/menu_explore.c +++ b/menu/menu_explore.c @@ -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;