summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 9c1e675..510c980 100644
--- a/menu.c
+++ b/menu.c
@@ -304,8 +304,7 @@ void cPvrMenuMain::Draw(void)
osd->DrawRectangle(0, titleHeight, border - 1, height - 1, clrWhite);
osd->DrawRectangle(0, height - border, width - 1, height - 1, clrWhite);
osd->DrawRectangle(width - border, titleHeight, width - 1, height - 1, clrWhite);
- char strpercentvalue[4];
- sprintf(strpercentvalue, "%d%%", IntVal2Percent(localvalue, localminimum, localmaximum));
+ cString strpercentvalue = cString::sprintf("%d%%", IntVal2Percent(localvalue, localminimum, localmaximum));
osd->DrawText(width - font->Width("100%") - border - margin - 1,
border + margin + titleHeight,
strpercentvalue,