summaryrefslogtreecommitdiff
path: root/skinsttng.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 /skinsttng.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 'skinsttng.c')
-rw-r--r--skinsttng.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/skinsttng.c b/skinsttng.c
index 7e450fda..792652ee 100644
--- a/skinsttng.c
+++ b/skinsttng.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinsttng.c 3.1 2013/11/15 15:33:14 kls Exp $
+ * $Id: skinsttng.c 4.1 2016/12/22 14:07:22 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures
@@ -655,8 +655,7 @@ void cSkinSTTNGDisplayMenu::SetEvent(const cEvent *Event)
int xl = x3 + TextSpacing;
int y = y3;
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, x4 - xl, y4 - y, t, font, Theme.Color(clrMenuEventTime), Theme.Color(clrBackground));
if (Event->Vps() && Event->Vps() != Event->StartTime()) {
cString buffer = cString::sprintf(" VPS: %s ", *Event->GetVpsString());