aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-21 08:24:48 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-21 08:24:48 -0400
commit6278922f7afd077bb679a9bb225b45a35f57159e (patch)
treec304c3d0abd860871e17c27b4c389557c4a2f4f7 /sway
parent1c4b50894c2a7c5ef8d60a6661ecf73fc4744ba8 (diff)
Fix clang warnings
These particular warnings have always struck me as stupid
Diffstat (limited to 'sway')
-rw-r--r--sway/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/log.c b/sway/log.c
index 21aa9b8e..e0734109 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -54,7 +54,7 @@ void sway_log(int verbosity, const char* format, ...) {
}
if (colored) {
- fprintf(stderr, verbosity_colors[c]);
+ fprintf(stderr, "%s", verbosity_colors[c]);
}
va_list args;
@@ -77,7 +77,7 @@ void sway_log_errno(int verbosity, char* format, ...) {
}
if (colored) {
- fprintf(stderr, verbosity_colors[c]);
+ fprintf(stderr, "%s", verbosity_colors[c]);
}
va_list args;
@@ -88,7 +88,7 @@ void sway_log_errno(int verbosity, char* format, ...) {
fprintf(stderr, ": ");
char error[256];
strerror_r(errno, error, sizeof(error));
- fprintf(stderr, error);
+ fprintf(stderr, "%s", error);
if (colored) {
fprintf(stderr, "\x1B[0m");