From 641215f77b24ca62d8d2c2c4726660f94dec6d03 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 7 Jul 2012 13:46:03 +0200 Subject: [PATCH] simple_display: fix array size Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/770ab77eac5a92ee773297a7dbf4b69da89f7d0c Author: Stefan Seyfried Date: 2012-07-07 (Sat, 07 Jul 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/simple_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;