mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
glcd: fix possible format-truncation error
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6306690960
Author: max_10 <max_10@gmx.de>
Date: 2022-11-19 (Sat, 19 Nov 2022)
Origin message was:
------------------
- glcd: fix possible format-truncation error
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1115,7 +1115,7 @@ void cGLCD::Run(void)
|
|||||||
if ((info_CurrentNext.current_zeit.dauer > 0) && (info_CurrentNext.current_zeit.dauer < 86400))
|
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;
|
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 total = info_CurrentNext.current_zeit.dauer / 60;
|
||||||
int done = (abs(time(NULL) - info_CurrentNext.current_zeit.startzeit) + 30) / 60;
|
int done = (abs(time(NULL) - info_CurrentNext.current_zeit.startzeit) + 30) / 60;
|
||||||
int todo = total - done;
|
int todo = total - done;
|
||||||
|
Reference in New Issue
Block a user