]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/events.c
Fix reporting jobs from state file + misc
[bacula/bacula] / bacula / src / lib / events.c
index 3333655826c599a7d3992ddb677b566afbf17b78..d9833f3f18b27cbd7552ee9f3b757d1e0143c9c7 100644 (file)
@@ -43,7 +43,7 @@ void log_event(UPSINFO *ups, int level, char *fmt, ...)
     vsprintf(msg, fmt, arg_ptr);
     va_end(arg_ptr);
 
-    syslog(level, msg);          /* log the event */
+    syslog(level, "%s", msg);         /* log the event */
 
     /* Write out to our temp file. LOG_INFO is DATA logging, so
        do not write it to our temp events file. */
@@ -138,7 +138,7 @@ bailout:
 
 #endif /* IMPLEMENTED */
 
-#ifdef HAVE_CYGWIN
+#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32)
 
 #include <windows.h>