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: r24l~297^2 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d61638ffd63fb104b921d11363a68b23f7ecac92;p=pcsx_rearmed.git Fix crash when BIOS isn't found --- 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);