summarylogtreecommitdiffstats
path: root/flow-werror-fix.patch
blob: 59b134993f332f7e41a65cc03e232f5d9bb9d14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
diff --git a/lib/fterr.c b/lib/fterr.c
index 1bb5c89..5b47207 100644
--- a/lib/fterr.c
+++ b/lib/fterr.c
@@ -112,7 +112,7 @@ void fterr_info(const char *fmt, ...)
     fprintf(((fterr_file) ? fterr_file : stderr), "%s\n", buf2);
 
   if (fterr_flags & FTERR_SYSLOG)
-    syslog(LOG_INFO, buf);
+    syslog(LOG_INFO, "%s", buf);
 
 } /* fterr_info */
 
@@ -134,7 +134,7 @@ void fterr_err(int code, const char *fmt, ...)
 
   if (fterr_flags & FTERR_SYSLOG) {
     snprintf(buf2, 1024, "%s: %s", buf, strerror(errno));
-    syslog(LOG_INFO, buf2);
+    syslog(LOG_INFO, "%s", buf2);
   }
 
   if (fterr_exit)
@@ -159,7 +159,7 @@ void fterr_errx(int code, const char *fmt, ...)
   }
 
   if (fterr_flags & FTERR_SYSLOG)
-    syslog(LOG_INFO, buf);
+    syslog(LOG_INFO, "%s", buf);
 
   if (fterr_exit)
     fterr_exit(code);
@@ -183,7 +183,7 @@ void fterr_warnx(const char *fmt, ...)
   }
 
   if (fterr_flags & FTERR_SYSLOG)
-    syslog(LOG_INFO, buf);
+    syslog(LOG_INFO, "%s", buf);
 
 } /* fterr_warnx */
 
@@ -205,7 +205,7 @@ void fterr_warn(const char *fmt, ...)
 
   if (fterr_flags & FTERR_SYSLOG) {
     snprintf(buf2, 1024, "%s: %s", buf, strerror(errno));
-    syslog(LOG_INFO, buf2);
+    syslog(LOG_INFO, "%s", buf2);
   }
 
 } /* fterr_warn */