mirror of
https://gitlab.xiph.org/xiph/icecast-common.git
synced 2024-12-04 14:46:31 -05:00
Major stability fixes, to make things work better on bad input. Stops some
memory leaks too, I think. svn path=/trunk/log/; revision=2326
This commit is contained in:
parent
0f3efddf60
commit
f16bd5b8ad
@ -161,7 +161,7 @@ void log_write(int log_id, int priority, const char *cat, const char *fmt, ...)
|
||||
vsnprintf(line, LOG_MAXLINELEN, fmt, ap);
|
||||
|
||||
now = time(NULL);
|
||||
strftime(tyme, 128, "[%Y-%m-%d %H:%M:%S]", gmtime(&now));
|
||||
strftime(tyme, 128, "[%Y-%m-%d %H:%M:%S]", localtime(&now));
|
||||
|
||||
snprintf(pre, 256, "%s %s", prior[priority-1], cat);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user