diff options
Diffstat (limited to 'sway/log.c')
-rw-r--r-- | sway/log.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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"); |