From: notaz Date: Mon, 17 Jul 2023 17:06:27 +0000 (+0300) Subject: Merge pull request #732 from bslenul/crash-fix X-Git-Tag: r24l~297 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf45d845639d0a9d2edc6d9e468f0bd048e7ffb;hp=c724311022b2c172b10d67aa296801bd8fe0e71f;p=pcsx_rearmed.git Merge pull request #732 from bslenul/crash-fix 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);