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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
--- src/osirisd/logging.c
+++ src/osirisd/logging.c
@@ -93,7 +93,7 @@
fprintf( stdout, "\n" );
}
#else
- syslog( ( SYSLOG_FACILITY | LOG_ERR ), header );
+ syslog( ( SYSLOG_FACILITY | LOG_ERR ), "%s", header );
#endif
}
@@ -147,7 +147,7 @@
fprintf( stdout, "\n" );
}
#else
- syslog( ( SYSLOG_FACILITY | LOG_INFO ), header );
+ syslog( ( SYSLOG_FACILITY | LOG_INFO ), "%s", header );
#endif
}
@@ -201,7 +201,7 @@
fprintf( stdout, "\n" );
}
#else
- syslog( ( SYSLOG_FACILITY | LOG_WARNING ), header );
+ syslog( ( SYSLOG_FACILITY | LOG_WARNING ), "%s", header );
#endif
}
--- src/osirismd/logging.c
+++ src/osirismd/logging.c
@@ -106,7 +106,7 @@
fprintf( stdout, "\n" );
}
#else
- syslog( ( syslog_facility | LOG_ERR ), header );
+ syslog( ( syslog_facility | LOG_ERR ), "%s", header );
#endif
}
@@ -168,7 +168,7 @@
fprintf( stdout, "\n" );
}
#else
- syslog( ( syslog_facility | LOG_INFO ), header );
+ syslog( ( syslog_facility | LOG_INFO ), "%s", header );
#endif
}
@@ -230,7 +230,7 @@
fprintf( stdout, "\n" );
}
#else
- syslog( ( syslog_facility | LOG_WARNING ), header );
+ syslog( ( syslog_facility | LOG_WARNING ), "%s", header );
#endif
}
@@ -281,7 +281,7 @@
NULL); /* no raw data */
}
#else
- syslog( ( syslog_facility | LOG_INFO ), buffer );
+ syslog( ( syslog_facility | LOG_INFO ), "%s", buffer );
#endif
}
|