From 60daf7aff65875066be13940c7fa1ea0c646ea38 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 18 Sep 2022 21:46:30 +0200 Subject: [PATCH] Reduce stacksize for WUPSConfigItem --- source/config/WUPSConfigItem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/config/WUPSConfigItem.h b/source/config/WUPSConfigItem.h index fe651b4..e60ae21 100644 --- a/source/config/WUPSConfigItem.h +++ b/source/config/WUPSConfigItem.h @@ -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;