summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhold Gschweicher <pyro4hell@gmail.com>2022-03-08 22:10:06 (GMT)
committerReinhold Gschweicher <pyro4hell@gmail.com>2022-03-08 22:12:34 (GMT)
commitf47b04ffd0ee401381f18cfedd716d492b4c7db8 (patch)
tree8333ca80f6c7b51dbbbfc5b587e3b813c30e6f57
parent7e0b053b38d0491eb4ee666be34d0ea2ab029d19 (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
-rw-r--r--src/displayapp/screens/settings/SettingChimes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/settings/SettingChimes.h b/src/displayapp/screens/settings/SettingChimes.h
index 653f87f..a251e95 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];
};
}
}