diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-15 14:57:48 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-15 14:57:48 +0100 |
commit | 9495aa9923fed16aeb6f49c69ccd249b9e17dba7 (patch) | |
tree | 5bf8b7683e3bf3b6e0725adf834b0d5344283ad3 /menuitems.c | |
parent | c8584521f794492d81d87d448f2c4dcefc636b34 (diff) | |
download | vdr-9495aa9923fed16aeb6f49c69ccd249b9e17dba7.tar.gz vdr-9495aa9923fed16aeb6f49c69ccd249b9e17dba7.tar.bz2 |
Using cString::sprintf() instead of asprintf()
Diffstat (limited to 'menuitems.c')
-rw-r--r-- | menuitems.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/menuitems.c b/menuitems.c index 44c9f892..4aba66c6 100644 --- a/menuitems.c +++ b/menuitems.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menuitems.c 1.57 2008/02/08 13:48:31 kls Exp $ + * $Id: menuitems.c 1.58 2008/02/10 16:03:30 kls Exp $ */ #include "menuitems.h" @@ -34,9 +34,8 @@ cMenuEditItem::~cMenuEditItem() void cMenuEditItem::SetValue(const char *Value) { - char *buffer = NULL; - asprintf(&buffer, "%s:\t%s", name, Value); - SetText(buffer, false); + cString buffer = cString::sprintf("%s:\t%s", name, Value); + SetText(buffer); cStatus::MsgOsdCurrentItem(buffer); } |