From c7e46768ad62e4b9cdcef28095fa2bce55ef7cc1 Mon Sep 17 00:00:00 2001 From: paulo Date: Thu, 4 Feb 2010 15:48:35 +0000 Subject: Missed a few non safe calls of strerror. Improved comments. --- lib/log.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/log.c') 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); } -- cgit v1.2.3