[vhffs-dev] [2177] syslog argument is actually a format, we don' t want the log string to be parsed

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2177
Author:   gradator
Date:     2012-05-06 15:02:25 +0200 (Sun, 06 May 2012)
Log Message:
-----------
syslog argument is actually a format, we don't want the log string to be parsed

Modified Paths:
--------------
    trunk/vhffs-syslogger/syslogger.c

Modified: trunk/vhffs-syslogger/syslogger.c
===================================================================
--- trunk/vhffs-syslogger/syslogger.c	2012-05-05 22:59:54 UTC (rev 2176)
+++ trunk/vhffs-syslogger/syslogger.c	2012-05-06 13:02:25 UTC (rev 2177)
@@ -147,7 +147,7 @@
 
 	openlog(ident, option, facility);
 	while( fgets(buffer, bufsiz, stdin) ) {
-		syslog(priority, buffer);
+		syslog(priority, "%s", buffer);
 		if(tee) {
 			fwrite(buffer, strlen(buffer), 1, tee);
 			fflush(tee);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/