From f184f64e903cc43aa43ee476210bdc546f62ac4a Mon Sep 17 00:00:00 2001 From: Bohdan Kmit Date: Tue, 23 Jul 2019 23:59:23 +0300 Subject: [PATCH 1/2] Increase temporary variable size to fit utf-8 strings --- sonoff/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index b445342ff..cff6d855e 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -1115,7 +1115,7 @@ void HandleTemplateConfiguration(void) return; } - char stemp[20]; // Template number and Sensor name + char stemp[30]; // Template number and Sensor name if (WebServer->hasArg("m")) { WSContentBegin(200, CT_PLAIN); From bb632ae0230647dd863090ab22896bfd8dbf81be Mon Sep 17 00:00:00 2001 From: Bohdan Kmit Date: Wed, 24 Jul 2019 00:19:27 +0300 Subject: [PATCH 2/2] Increase temporary variable size to fit utf-8 strings --- sonoff/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index cff6d855e..e52ee3eb4 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -1242,7 +1242,7 @@ void HandleModuleConfiguration(void) return; } - char stemp[20]; // Sensor name + char stemp[30]; // Sensor name uint8_t midx; myio cmodule; ModuleGpios(&cmodule);