[xiph-commits] r18756 - icecast/trunk/log

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Wed Jan 2 06:44:43 PST 2013


Author: ph3-der-loewe
Date: 2013-01-02 06:44:43 -0800 (Wed, 02 Jan 2013)
New Revision: 18756

Modified:
   icecast/trunk/log/log.c
   icecast/trunk/log/log.h
Log:
Escape log entries in access log (close: #1916)

Modified: icecast/trunk/log/log.c
===================================================================
--- icecast/trunk/log/log.c	2013-01-02 14:44:08 UTC (rev 18755)
+++ icecast/trunk/log/log.c	2013-01-02 14:44:43 UTC (rev 18756)
@@ -588,7 +588,7 @@
     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);

Modified: icecast/trunk/log/log.h
===================================================================
--- icecast/trunk/log/log.h	2013-01-02 14:44:08 UTC (rev 18755)
+++ icecast/trunk/log/log.h	2013-01-02 14:44:43 UTC (rev 18756)
@@ -39,6 +39,6 @@
 
 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__ */



More information about the commits mailing list