From a31409059bb946c8366da29d824d6762811638b4 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Wed, 6 Jun 2018 11:00:13 +0200 Subject: [PATCH] Bugfix - opravena spatna +1 v delce. --- src/trace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }