summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/log.c b/lib/log.c
index bc4ed1ff..12b76c14 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -709,12 +709,10 @@ _zlog_abort_err (const char *mess, int err, const char *file,
{
const static size_t buff_size = 1024;
char buff[buff_size];
- char err_mess[buff_size];
- strerror_r(err, err_mess, buff_size);
snprintf(buff, buff_size,
"%s, in file %s, line %u, function %s, error %d \"%s\"",
mess, file, line, (function ? function : "?"),
- err, err_mess);
+ err, safe_strerror(err));
zlog_abort(buff);
}