Commit 141f160a authored by Philipp Schafft's avatar Philipp Schafft 🦁

Escape log entries in access log (close: #1916)

svn path=/icecast/trunk/log/; revision=18756
parent 174a1822
......@@ -588,7 +588,7 @@ void log_write_direct(int log_id, const char *fmt, ...)
now = time(NULL);
_lock_logger();
vsnprintf(line, LOG_MAXLINELEN, fmt, ap);
__vsnprintf(line, LOG_MAXLINELEN, fmt, ap);
if (_log_open (log_id))
{
int len = create_log_entry (log_id, "", line);
......
......@@ -39,6 +39,6 @@ void log_shutdown(void);
void log_write(int log_id, unsigned priority, const char *cat, const char *func,
const char *fmt, ...);
void log_write_direct(int log_id, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
void log_write_direct(int log_id, const char *fmt, ...);
#endif /* __LOG_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment