diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-17 18:08:11 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-18 13:04:37 +0200 |
commit | 9a1fe66f08149596567fedb4e2338ae786a19ab9 (patch) | |
tree | 562ee2eedc17f0dd83f62890d3b4d12f02ee5a72 /trust/parser.c | |
parent | e403f7b33ac35e961c72ed1b6335bbe3084e4642 (diff) |
Avoid using the non-thread-safe strerror() function
https://bugzilla.redhat.com/show_bug.cgi?id=985481
Diffstat (limited to 'trust/parser.c')
-rw-r--r-- | trust/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/parser.c b/trust/parser.c index b433508..4129cc0 100644 --- a/trust/parser.c +++ b/trust/parser.c @@ -760,7 +760,7 @@ p11_parse_file (p11_parser *parser, map = p11_mmap_open (filename, &data, &size); if (map == NULL) { - p11_message ("couldn't open and map file: %s: %s", filename, strerror (errno)); + p11_message_err (errno, "couldn't open and map file: %s", filename); return P11_PARSE_FAILURE; } |