diff --git a/src/trace.cpp b/src/trace.cpp index 653e50e..25912e3 100644 --- a/src/trace.cpp +++ b/src/trace.cpp @@ -13,7 +13,7 @@ struct TraceLine TraceLine(uint8_t severity, const char *str, uint16_t len) { strncpy(_text, str, sizeof(_text)); - _text[MAX_LINE_LEN + 1] = 0; + _text[MAX_LINE_LEN] = 0; _time = millis(); _severity = severity; }