Update preferences.cpp

on wii, it tries to access 5 elements even though filepath only holds 4, meaning it overwrites part of the stack leading to random crashes etc.
This commit is contained in:
FIX94 2018-03-08 01:59:43 +01:00 committed by GitHub
parent 221a547c3e
commit c6fb52762b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -813,7 +813,7 @@ bool LoadPrefs()
return true;
bool prefFound = false;
char filepath[4][MAXPATHLEN];
char filepath[5][MAXPATHLEN];
int numDevices;
#ifdef HW_RVL