summaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2008-02-20 17:47:50 +0100
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2008-02-20 17:47:50 +0100
commit1ca3263b1febbef86071eaaa4e8eda0bbac578fa (patch)
tree51acae08ac515eba84e01c76261a7735665dd601 /log.h
parent57d0cbd75c591e450e4d11a45ac6a016de48b8cf (diff)
downloadvdr-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.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/log.h b/log.h
index 4fbc470..b8d90d3 100644
--- a/log.h
+++ b/log.h
@@ -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, ...)