Bugfix - opravena spatna +1 v delce.

This commit is contained in:
Pavel Brychta 2018-06-06 11:00:13 +02:00
parent b6cc695e95
commit a31409059b

View File

@ -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;
}