summaryrefslogtreecommitdiff
path: root/skinlcars.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-22 14:13:42 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-22 14:13:42 +0100
commit39c9fc11993609dbe1d8de7a3811c25403d3049e (patch)
tree04d68dd94371b3217aeeaf86bcdb35036788e3ec /skinlcars.c
parent99dfe9f66a5e33ab0ce55850f57901bf5fe11692 (diff)
downloadvdr-39c9fc11993609dbe1d8de7a3811c25403d3049e.tar.gz
vdr-39c9fc11993609dbe1d8de7a3811c25403d3049e.tar.bz2
Fixed truncated date/time strings in the skins on multi-byte UTF-8 systems
Diffstat (limited to 'skinlcars.c')
-rw-r--r--skinlcars.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/skinlcars.c b/skinlcars.c
index d84a753f..0fae3b85 100644
--- a/skinlcars.c
+++ b/skinlcars.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinlcars.c 4.1 2015/09/01 10:07:07 kls Exp $
+ * $Id: skinlcars.c 4.2 2016/12/22 14:05:56 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
@@ -1636,8 +1636,7 @@ void cSkinLCARSDisplayMenu::SetEvent(const cEvent *Event)
int xl = xi00;
int y = yi00;
cTextScroller ts;
- char t[32];
- snprintf(t, sizeof(t), "%s %s - %s", *Event->GetDateString(), *Event->GetTimeString(), *Event->GetEndTimeString());
+ cString t = cString::sprintf("%s %s - %s", *Event->GetDateString(), *Event->GetTimeString(), *Event->GetEndTimeString());
ts.Set(osd, xl, y, xi01 - xl, yi01 - y, t, font, Theme.Color(clrEventTime), Theme.Color(clrBackground));
if (Event->Vps() && Event->Vps() != Event->StartTime()) {
cString buffer = cString::sprintf(" VPS: %s ", *Event->GetVpsString());