summaryrefslogtreecommitdiff
path: root/lib/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlers.c')
-rw-r--r--lib/handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/handlers.c b/lib/handlers.c
index ee1376b0..e52c850f 100644
--- a/lib/handlers.c
+++ b/lib/handlers.c
@@ -79,9 +79,10 @@ static int nl_error_handler_verbose(struct sockaddr_nl *who,
struct nlmsgerr *e, void *arg)
{
FILE *ofd = arg ? arg : stderr;
+ char buf[256];
fprintf(ofd, "-- Error received: %s\n-- Original message: ",
- strerror(-e->error));
+ strerror_r(-e->error, buf, sizeof(buf)));
print_header_content(ofd, &e->msg);
fprintf(ofd, "\n");