aboutsummaryrefslogtreecommitdiffstats
path: root/sway/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/log.c')
-rw-r--r--sway/log.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/log.c b/sway/log.c
index cf5c2092..a6582172 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -80,9 +80,7 @@ void sway_log_errno(log_importance_t verbosity, char* format, ...) {
80 va_end(args); 80 va_end(args);
81 81
82 fprintf(stderr, ": "); 82 fprintf(stderr, ": ");
83 char error[256]; 83 fprintf(stderr, "%s", strerror(errno));
84 strerror_r(errno, error, sizeof(error));
85 fprintf(stderr, "%s", error);
86 84
87 if (colored && isatty(STDERR_FILENO)) { 85 if (colored && isatty(STDERR_FILENO)) {
88 fprintf(stderr, "\x1B[0m"); 86 fprintf(stderr, "\x1B[0m");