summaryrefslogtreecommitdiff
path: root/openbox/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/debug.c')
-rw-r--r--openbox/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/debug.c b/openbox/debug.c
index 6b92c9ec..db18784c 100644
--- 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)
{
- fprintf(out, log_domain);
+ fprintf(out, "%s", log_domain);
fprintf(out, "-");
- fprintf(out, level);
+ fprintf(out, "%s", level);
fprintf(out, ": ");
- fprintf(out, message);
+ fprintf(out, "%s", message);
fprintf(out, "\n");
fflush(out);
}