diff --git a/tasmota/support.ino b/tasmota/support.ino index 1411a1953..8c2aadeb8 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1972,7 +1972,7 @@ void AddLog(uint32_t loglevel) TasmotaGlobal.web_log_index++; // Index 0 is not allowed as it is the end of char string } while (TasmotaGlobal.web_log_index == TasmotaGlobal.web_log[0] || // If log already holds the next index, remove it - strlen(TasmotaGlobal.web_log) + strlen(TasmotaGlobal.log_data) + 13 > WEB_LOG_SIZE) // 13 = web_log_index + mxtime + '\1' + '\0' + strlen(TasmotaGlobal.web_log) + strlen(TasmotaGlobal.log_data) + strlen(mxtime) + 4 > WEB_LOG_SIZE) // 4 = web_log_index + '\1' + '\0' { char* it = TasmotaGlobal.web_log; it++; // Skip web_log_index