diff options
Diffstat (limited to 'menu_search.c')
-rw-r--r-- | menu_search.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/menu_search.c b/menu_search.c index 9b2dd3d..8a70687 100644 --- a/menu_search.c +++ b/menu_search.c @@ -130,11 +130,9 @@ void cMenuEPGSearchExt::UpdateTitle() total++; } - char *buffer = NULL; - asprintf(&buffer, "%s (%d/%d %s)", tr("Search entries"), active, total, tr("active")); + cString buffer = cString::sprintf("%s (%d/%d %s)", tr("Search entries"), active, total, tr("active")); SetTitle(buffer); Display(); - free(buffer); } cSearchExt *cMenuEPGSearchExt::CurrentSearchExt(void) |