[Asterisk-cvs] asterisk logger.c,1.31,1.32

markster at lists.digium.com markster at lists.digium.com
Tue Apr 13 00:24:54 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv17974

Modified Files:
	logger.c 
Log Message:
Don't allow the format to be doubly handled


Index: logger.c
===================================================================
RCS file: /usr/cvsroot/asterisk/logger.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- logger.c	30 Mar 2004 16:16:05 -0000	1.31
+++ logger.c	13 Apr 2004 04:27:06 -0000	1.32
@@ -440,7 +440,7 @@
 		 levels[level], (long)pthread_self(), file, line, function);
     }
     vsnprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), fmt, args);
-    syslog(syslog_level_map[level], buf);
+    syslog(syslog_level_map[level], "%s", buf);
 }
 
 /*




More information about the svn-commits mailing list