projects
/
dana
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another problem pointed out by clang
[dana/openbox.git]
/
openbox
/
debug.c
diff --git
a/openbox/debug.c
b/openbox/debug.c
index
6b92c9e
..
db18784
100644
(file)
--- a/
openbox/debug.c
+++ b/
openbox/debug.c
@@
-102,11
+102,11
@@
void ob_debug_enable(ObDebugType type, gboolean enable)
static inline void log_print(FILE *out, const gchar* log_domain,
const gchar *level, const gchar *message)
{
static inline void log_print(FILE *out, const gchar* log_domain,
const gchar *level, const gchar *message)
{
- fprintf(out, log_domain);
+ fprintf(out,
"%s",
log_domain);
fprintf(out, "-");
fprintf(out, "-");
- fprintf(out, level);
+ fprintf(out,
"%s",
level);
fprintf(out, ": ");
fprintf(out, ": ");
- fprintf(out, message);
+ fprintf(out,
"%s",
message);
fprintf(out, "\n");
fflush(out);
}
fprintf(out, "\n");
fflush(out);
}