Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 882b45e668a9e9598a286175a654526b > files > 1

rdate-1.4-13.mga3.src.rpm

--- rdate.c	2008-12-22 15:22:03.000000000 +0100
+++ rdate.c.oden	2008-12-22 15:23:15.000000000 +0100
@@ -69,7 +69,7 @@ static void writeLog(int is_error, char 
     return; /* Error, which we can't report because this _is_ the error
 	       reporting mechanism */
   if(log_mode)
-    syslog(is_error?LOG_WARNING:LOG_INFO, buf);
+    syslog(is_error?LOG_WARNING:LOG_INFO, "%s", buf);
   if(is_error || print_mode)
     fprintf(is_error?stderr:stdout, "%s: %s\n", argv0, buf);
 }