From 2d700ecf0a4bfbcc97fe9312e10a13ad9a6602fa Mon Sep 17 00:00:00 2001 From: max_10 Date: Sat, 19 Nov 2022 13:25:46 +0100 Subject: [PATCH] =?UTF-8?q?-=C2=A0glcd:=C2=A0fix=C2=A0possible=C2=A0format?= =?UTF-8?q?-truncation=C2=A0error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/driver/glcd/glcd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/glcd/glcd.cpp b/src/driver/glcd/glcd.cpp index 3a623f5ec..0d42a858e 100644 --- a/src/driver/glcd/glcd.cpp +++ b/src/driver/glcd/glcd.cpp @@ -1101,7 +1101,7 @@ void cGLCD::Run(void) if ((info_CurrentNext.current_zeit.dauer > 0) && (info_CurrentNext.current_zeit.dauer < 86400)) { Scale = (ts.tv_sec - info_CurrentNext.current_zeit.startzeit) * 100 / info_CurrentNext.current_zeit.dauer; - char tmp_duration[6] = {0}; + char tmp_duration[15] = {0}; int total = info_CurrentNext.current_zeit.dauer / 60; int done = (abs(time(NULL) - info_CurrentNext.current_zeit.startzeit) + 30) / 60; int todo = total - done;