diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-02-20 17:47:50 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2008-02-20 17:47:50 +0100 |
commit | 1ca3263b1febbef86071eaaa4e8eda0bbac578fa (patch) | |
tree | 51acae08ac515eba84e01c76261a7735665dd601 /log.h | |
parent | 57d0cbd75c591e450e4d11a45ac6a016de48b8cf (diff) | |
download | vdr-plugin-epgsearch-1ca3263b1febbef86071eaaa4e8eda0bbac578fa.tar.gz vdr-plugin-epgsearch-1ca3263b1febbef86071eaaa4e8eda0bbac578fa.tar.bz2 |
replaced asprintf with cString::sprintf and a wrapper function
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -63,11 +63,9 @@ class cLogFile: public cFile char timebuf[25]; strftime(timebuf, sizeof(timebuf), "%T", localtime_r(&now, &tm_r)); - char* log = NULL; - asprintf(&log, "%s %s: %s\n", datebuf, timebuf, buffer); + cString log = cString::sprintf("%s %s: %s\n", datebuf, timebuf, buffer); free(buffer); safe_write(*this, log, strlen(log)); - free(log); } } void eSysLog(const char *text, ...) |