diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-05 19:49:07 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-05 19:49:07 +0200 |
commit | c9c5028018a588baad2c1af6dcfa3325bc18d02c (patch) | |
tree | 27e02f32bfac39b5699e8514c2585be78029028c /minecproxy | |
parent | 2c9ba58d3142243b439dd83b254b1e6eba94d52c (diff) |
Fix some -Werror=format-security errors
Diffstat (limited to 'minecproxy')
-rw-r--r-- | minecproxy/main.c | 6 |
1 files 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, ...) |