From: Bobby Smith <33353403+bslenul@users.noreply.github.com> Date: Mon, 17 Jul 2023 16:28:25 +0000 (+0200) Subject: Fix crash when BIOS isn't found X-Git-Tag: r24~244 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c20e9554b257c1bbd91b865d193ac8954638d3f;p=pcsx_rearmed.git Fix crash when BIOS isn't found --- 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);