From 713bf66a127a50d8d1a1fb6470f2a0ca00161db9 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sat, 26 Nov 2022 03:57:17 +0100 Subject: [PATCH] Increase QL buffer to allow unicode characters Fixes #2906 --- wled00/presets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/presets.cpp b/wled00/presets.cpp index be5d7785..826f3395 100644 --- a/wled00/presets.cpp +++ b/wled00/presets.cpp @@ -12,7 +12,7 @@ static volatile byte presetToApply = 0; static volatile byte callModeToApply = 0; static volatile byte presetToSave = 0; static volatile int8_t saveLedmap = -1; -static char quickLoad[3]; +static char quickLoad[9]; static char saveName[33]; static bool includeBri = true, segBounds = true, selectedOnly = false, playlistSave = false;; @@ -199,7 +199,7 @@ void savePreset(byte index, const char* pname, JsonObject sObj) presetToSave = index; playlistSave = false; - if (sObj[F("ql")].is()) strlcpy(quickLoad, sObj[F("ql")].as(), 3); // only 2 chars for QL + if (sObj[F("ql")].is()) strlcpy(quickLoad, sObj[F("ql")].as(), 9); // client limits QL to 2 chars, buffer for 8 bytes to allow unicode sObj.remove("v"); sObj.remove("time"); sObj.remove(F("error"));