Reduce stacksize for WUPSConfigItem

This commit is contained in:
Maschell 2022-09-18 21:46:30 +02:00
parent 37fb50eebe
commit 60daf7aff6

View File

@ -64,7 +64,7 @@ public:
**/
[[nodiscard]] std::string getCurrentValueDisplay() const {
if (this->callbacks.getCurrentValueDisplay != nullptr) {
char buf[256];
char buf[80];
int res = this->callbacks.getCurrentValueDisplay(context, buf, sizeof(buf));
if (res == 0) {
return buf;
@ -82,7 +82,7 @@ public:
**/
[[nodiscard]] std::string getCurrentValueSelectedDisplay() const {
if (this->callbacks.getCurrentValueSelectedDisplay != nullptr) {
char buf[256];
char buf[80];
int res = this->callbacks.getCurrentValueSelectedDisplay(context, buf, sizeof(buf));
if (res == 0) {
return buf;