mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -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
3eac17e81e
commit
d22bb9a528
@ -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