summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2010-02-04 15:48:35 +0000
committerpaulo <paul@bayleaf.org.uk>2010-02-04 15:48:35 +0000
commitc7e46768ad62e4b9cdcef28095fa2bce55ef7cc1 (patch)
tree823514c9403eeb924b0b8a5c9029f45f174df46d /lib/log.c
parent321902625926d21f511c2d0c55f5aad634224e75 (diff)
downloadquagga-c7e46768ad62e4b9cdcef28095fa2bce55ef7cc1.tar.bz2
quagga-c7e46768ad62e4b9cdcef28095fa2bce55ef7cc1.tar.xz
Missed a few non safe calls of strerror. Improved comments.
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);
}