1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

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

svn path=/icecast/trunk/log/; revision=18756
This commit is contained in:
Philipp Schafft 2013-01-02 14:44:43 +00:00
parent 40e087090e
commit 6a815a52d4
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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__ */