From d61638ffd63fb104b921d11363a68b23f7ecac92 Mon Sep 17 00:00:00 2001 From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Mon, 17 Jul 2023 18:28:25 +0200 Subject: [PATCH 1/1] Fix crash when BIOS isn't found --- frontend/libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/libretro.c b/frontend/libretro.c index 938b8e59..1fb7c135 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2819,7 +2819,7 @@ static bool find_any_bios(const char *dirpath, char *path, size_t path_size) if (dir == NULL) return false; - for (i = 0; sizeof(substrings) / sizeof(substrings[0]); i++) + for (i = 0; i < (sizeof(substrings) / sizeof(substrings[0])); i++) { const char *substr = substrings[i]; size_t len = strlen(substr); -- 2.39.2