diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-13 18:06:58 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-07-13 18:06:58 +0300 |
commit | c0542dc4cef38987a1e377ac5d31a8987c9955d3 (patch) | |
tree | 0b8196c35fb666fa786da4b1589c04c2857c0e4f /font.c | |
parent | 294e778e92f66570eea390686ba1189bb6821adb (diff) | |
download | vdr-plugin-text2skin-c0542dc4cef38987a1e377ac5d31a8987c9955d3.tar.gz vdr-plugin-text2skin-c0542dc4cef38987a1e377ac5d31a8987c9955d3.tar.bz2 |
Replace asprintf by cString::sprintf in font loading.
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -67,12 +67,10 @@ const cFont *cText2SkinFont::Load(const string &Name, int Size) return cFont::GetFont(fontSml); const cFont *res = NULL; - char *cachename; - asprintf(&cachename, "%s_%d", Name.c_str(), Size); + string cachename = string(cString::sprintf("%s_%d", Name.c_str(), Size)); if (mFontCache.Load(Name, cachename, Size)) res = mFontCache.GetFont(cachename); else esyslog("ERROR: Text2Skin: Couldn't load font %s@%d", Name.c_str(), Size); - free(cachename); return res; } |