diff options
author | Reinhold Gschweicher <pyro4hell@gmail.com> | 2022-03-08 23:10:06 +0100 |
---|---|---|
committer | Reinhold Gschweicher <pyro4hell@gmail.com> | 2022-03-08 23:12:34 +0100 |
commit | f47b04ffd0ee401381f18cfedd716d492b4c7db8 (patch) | |
tree | 8333ca80f6c7b51dbbbfc5b587e3b813c30e6f57 /src/displayapp/screens/settings/SettingChimes.h | |
parent | 7e0b053b38d0491eb4ee666be34d0ea2ab029d19 (diff) |
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
Diffstat (limited to 'src/displayapp/screens/settings/SettingChimes.h')
-rw-r--r-- | src/displayapp/screens/settings/SettingChimes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/settings/SettingChimes.h b/src/displayapp/screens/settings/SettingChimes.h index 653f87f7..a251e95b 100644 --- a/src/displayapp/screens/settings/SettingChimes.h +++ b/src/displayapp/screens/settings/SettingChimes.h @@ -20,7 +20,7 @@ namespace Pinetime { private: Controllers::Settings& settingsController; uint8_t optionsTotal; - lv_obj_t* cbOption[2]; + lv_obj_t* cbOption[3]; }; } } |