Fix SettingChimes cbOption array size

There are 3 options, but the array-size is set to 2. This leads to
memory corruption in the initialization of the SettingChimes screen when
assigning the third option object pointer.

Found in https://github.com/InfiniTimeOrg/InfiniSim/issues/11
This commit is contained in:
Reinhold Gschweicher committed 2022-03-08 23:12:34 +01:00
1 parent 7e0b053b38
commit f47b04ffd0
1 file changed
+1 -1
@@ -20,7 +20,7 @@ namespace Pinetime {
private:
Controllers::Settings& settingsController;
uint8_t optionsTotal;
lv_obj_t* cbOption[2];
lv_obj_t* cbOption[3];
};
}
}