Fix crash when BIOS isn't found
[pcsx_rearmed.git] / frontend / libretro.c
index 7e5ac0c..21189d6 100644 (file)
@@ -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);