summaryrefslogtreecommitdiff
path: root/sway/log.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-09-18 07:23:04 -0700
committertaiyu <[email protected]>2015-09-18 07:23:04 -0700
commit0d51f62224a3c2e65894f1725076a588b172447c (patch)
tree35529e2a7888e4d3af0997371efd1da5bbf2ad15 /sway/log.c
parentd2e2b04bfd505561981c9137bfc493bb8effe63e (diff)
parent318e1be240574e316094e5ea73d32e9f9a1f7c04 (diff)
merge + no c_extensions
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 3859fd92..a206d971 100644
--- a/sway/log.c
+++ b/sway/log.c
@@ -80,9 +80,7 @@ void sway_log_errno(log_importance_t verbosity, char* format, ...) {
va_end(args);
fprintf(stderr, ": ");
- char error[256];
- strerror_r(errno, error, sizeof(error));
- fprintf(stderr, "%s", error);
+ fprintf(stderr, "%s", strerror(errno));
if (colored && isatty(STDERR_FILENO)) {
fprintf(stderr, "\x1B[0m");