]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/events.c
Use the command line utility dropdb instead of the psql command
[bacula/bacula] / bacula / src / lib / events.c
index 29c0319c86f2fc7a61fa86d8dcaa8d510694c94c..6e602076b9cd5080d3b4e9d61b9b7edbdf7187eb 100644 (file)
@@ -3,6 +3,8 @@
  *
  *    Kern Sibbald, August MMI
  *
+ *   Version $Id$
+ *
  */
 /*
    Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
@@ -41,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. */