Lines 1-66
Link Here
|
1 |
--- src/osirisd/logging.c |
|
|
2 |
+++ src/osirisd/logging.c |
3 |
@@ -93,7 +93,7 @@ |
4 |
fprintf( stdout, "\n" ); |
5 |
} |
6 |
#else |
7 |
- syslog( ( SYSLOG_FACILITY | LOG_ERR ), header ); |
8 |
+ syslog( ( SYSLOG_FACILITY | LOG_ERR ), "%s", header ); |
9 |
#endif |
10 |
} |
11 |
|
12 |
@@ -147,7 +147,7 @@ |
13 |
fprintf( stdout, "\n" ); |
14 |
} |
15 |
#else |
16 |
- syslog( ( SYSLOG_FACILITY | LOG_INFO ), header ); |
17 |
+ syslog( ( SYSLOG_FACILITY | LOG_INFO ), "%s", header ); |
18 |
#endif |
19 |
} |
20 |
|
21 |
@@ -201,7 +201,7 @@ |
22 |
fprintf( stdout, "\n" ); |
23 |
} |
24 |
#else |
25 |
- syslog( ( SYSLOG_FACILITY | LOG_WARNING ), header ); |
26 |
+ syslog( ( SYSLOG_FACILITY | LOG_WARNING ), "%s", header ); |
27 |
#endif |
28 |
} |
29 |
|
30 |
--- src/osirismd/logging.c |
31 |
+++ src/osirismd/logging.c |
32 |
@@ -106,7 +106,7 @@ |
33 |
fprintf( stdout, "\n" ); |
34 |
} |
35 |
#else |
36 |
- syslog( ( syslog_facility | LOG_ERR ), header ); |
37 |
+ syslog( ( syslog_facility | LOG_ERR ), "%s", header ); |
38 |
#endif |
39 |
} |
40 |
|
41 |
@@ -168,7 +168,7 @@ |
42 |
fprintf( stdout, "\n" ); |
43 |
} |
44 |
#else |
45 |
- syslog( ( syslog_facility | LOG_INFO ), header ); |
46 |
+ syslog( ( syslog_facility | LOG_INFO ), "%s", header ); |
47 |
#endif |
48 |
} |
49 |
|
50 |
@@ -230,7 +230,7 @@ |
51 |
fprintf( stdout, "\n" ); |
52 |
} |
53 |
#else |
54 |
- syslog( ( syslog_facility | LOG_WARNING ), header ); |
55 |
+ syslog( ( syslog_facility | LOG_WARNING ), "%s", header ); |
56 |
#endif |
57 |
} |
58 |
|
59 |
@@ -281,7 +281,7 @@ |
60 |
NULL); /* no raw data */ |
61 |
} |
62 |
#else |
63 |
- syslog( ( syslog_facility | LOG_INFO ), buffer ); |
64 |
+ syslog( ( syslog_facility | LOG_INFO ), "%s", buffer ); |
65 |
#endif |
66 |
} |