]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/log.c
Updated to reflect new changes to statd.c.
[nfs-utils.git] / utils / statd / log.c
index 38f7d3a2b8ee41fe70bc44aae4284e792a588c49..bf66547aa50546169e99b67f79fcda0b3bdf1d82 100644 (file)
@@ -16,6 +16,7 @@
 #include <syslog.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
 #include <time.h>
@@ -90,7 +91,7 @@ log(int level, char *fmt, ...)
     buffer[1023]=0;
 
     if (level < L_DEBUG) {
-       syslog(level, buffer);
+       syslog(level, "%s", buffer);
     }
 
     if (opt_debug) {