diff options
Diffstat (limited to 'sway/log.c')
-rw-r--r-- | sway/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -54,7 +54,7 @@ void sway_log(int verbosity, const char* format, ...) { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | if (colored) { | 56 | if (colored) { |
57 | fprintf(stderr, verbosity_colors[c]); | 57 | fprintf(stderr, "%s", verbosity_colors[c]); |
58 | } | 58 | } |
59 | 59 | ||
60 | va_list args; | 60 | va_list args; |
@@ -77,7 +77,7 @@ void sway_log_errno(int verbosity, char* format, ...) { | |||
77 | } | 77 | } |
78 | 78 | ||
79 | if (colored) { | 79 | if (colored) { |
80 | fprintf(stderr, verbosity_colors[c]); | 80 | fprintf(stderr, "%s", verbosity_colors[c]); |
81 | } | 81 | } |
82 | 82 | ||
83 | va_list args; | 83 | va_list args; |
@@ -88,7 +88,7 @@ void sway_log_errno(int verbosity, char* format, ...) { | |||
88 | fprintf(stderr, ": "); | 88 | fprintf(stderr, ": "); |
89 | char error[256]; | 89 | char error[256]; |
90 | strerror_r(errno, error, sizeof(error)); | 90 | strerror_r(errno, error, sizeof(error)); |
91 | fprintf(stderr, error); | 91 | fprintf(stderr, "%s", error); |
92 | 92 | ||
93 | if (colored) { | 93 | if (colored) { |
94 | fprintf(stderr, "\x1B[0m"); | 94 | fprintf(stderr, "\x1B[0m"); |