1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-16 06:15:24 +00: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:
Michael Smith 2001-11-10 04:47:25 +00:00
parent 0f3efddf60
commit f16bd5b8ad

View File

@ -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);