From 4c20e9554b257c1bbd91b865d193ac8954638d3f 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] 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 7e5ac0cb..21189d6f 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2817,7 +2817,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