mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Escape log entries in access log (close: #1916)
svn path=/icecast/trunk/log/; revision=18756
This commit is contained in:
parent
bb07af1eb7
commit
3d504e9e6c
@ -588,7 +588,7 @@ void log_write_direct(int log_id, const char *fmt, ...)
|
|||||||
now = time(NULL);
|
now = time(NULL);
|
||||||
|
|
||||||
_lock_logger();
|
_lock_logger();
|
||||||
vsnprintf(line, LOG_MAXLINELEN, fmt, ap);
|
__vsnprintf(line, LOG_MAXLINELEN, fmt, ap);
|
||||||
if (_log_open (log_id))
|
if (_log_open (log_id))
|
||||||
{
|
{
|
||||||
int len = create_log_entry (log_id, "", line);
|
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,
|
void log_write(int log_id, unsigned priority, const char *cat, const char *func,
|
||||||
const char *fmt, ...);
|
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__ */
|
#endif /* __LOG_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user