From c6fb52762becbaa610761cf59d66b90e1a07e3a2 Mon Sep 17 00:00:00 2001 From: FIX94 Date: Thu, 8 Mar 2018 01:59:43 +0100 Subject: [PATCH] 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. --- source/preferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/preferences.cpp b/source/preferences.cpp index fb0859c..2d6100e 100644 --- a/source/preferences.cpp +++ b/source/preferences.cpp @@ -813,7 +813,7 @@ bool LoadPrefs() return true; bool prefFound = false; - char filepath[4][MAXPATHLEN]; + char filepath[5][MAXPATHLEN]; int numDevices; #ifdef HW_RVL