From c9c5028018a588baad2c1af6dcfa3325bc18d02c Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 5 Jul 2020 19:49:07 +0200 Subject: Fix some -Werror=format-security errors --- minecproxy/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minecproxy/main.c b/minecproxy/main.c index 6ec92ba..3a06a8c 100644 --- a/minecproxy/main.c +++ b/minecproxy/main.c @@ -133,14 +133,14 @@ static void msg(enum debug_lvl lvl, const char *fmt, va_list ap) } if (sd_daemon) - fprintf(stderr, sd_lvl); + fprintf(stderr, "%s", sd_lvl); else if (color) - fprintf(stderr, color); + fprintf(stderr, "%s", color); vfprintf(log_file ? log_file : stderr, fmt, ap); if (color) - fprintf(stderr, ansi_normal); + fprintf(stderr, "%s", ansi_normal); } void __debug(enum debug_lvl lvl, const char *fmt, ...) -- cgit v1.2.3