X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdebug.c;h=c1180c33c79b07f62a704d928a964df55fce506e;hb=fa0ae17adbc8f73b707c33836d37841e81b9303a;hp=6b92c9ec9dd74f4aec81978282d3ef4e987cb142;hpb=c230443c6596039f426542f5a286120891a745c5;p=chaz%2Fopenbox diff --git a/openbox/debug.c b/openbox/debug.c index 6b92c9ec..c1180c33 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); } @@ -161,7 +161,7 @@ static inline void log_argv(ObDebugType type, g_free(a); } - g_debug(message); + g_debug("%s", message); g_free(message); }