diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index cf614618c..f1c6f2166 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -211,7 +211,7 @@ void CLCD::showTime(bool force) } else if (power && (force || (showclock && (now - last_display) > 4))) { - char timestr[DISPLAY_LEN]; + char timestr[DISPLAY_LEN + 1]; struct tm *t; static int hour = 0, minute = 0;