diff --git a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino index b41d639d9..4834bedb6 100755 --- a/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_10_scripter.ino @@ -9640,12 +9640,12 @@ bool Script_SubCmd(void) { if (cmdbuff) { char *cp = cmdbuff; *cp++ = '#'; - strlcpy(cp, command, sizeof(cmdbuff) - 1); + strlcpy(cp, command, 128 - 1); uint8_t tlen = strlen(command); cp += tlen; if (XdrvMailbox.data_len > 0) { *cp++ = '('; - uint32_t max_space = sizeof(cmdbuff) - tlen - 4; // 4 = #()0 + uint32_t max_space = 128 - tlen - 4; // 4 = #()0 uint32_t max_len = min(XdrvMailbox.data_len, max_space); strncpy(cp, XdrvMailbox.data, max_len); cp += max_len; @@ -12064,7 +12064,7 @@ uint8_t msect = Run_Scripter1(">m", -2, 0); } if (*lp!=';') { // send this line to smtp - Replace_Cmd_Vars(lp, 1, tmp, sizeof(tmp)); + Replace_Cmd_Vars(lp, 1, tmp, 256); //client->println(tmp); func(tmp); } @@ -12107,7 +12107,7 @@ void ScriptJsonAppend(void) { // subroutine lp = scripter_sub(lp + 1, 0); } else { - Replace_Cmd_Vars(lp, 1, tmp, sizeof(tmp)); + Replace_Cmd_Vars(lp, 1, tmp, 256); ResponseAppend_P(PSTR("%s"), tmp); } }