summaryrefslogtreecommitdiff
path: root/tools/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/common.c')
-rw-r--r--tools/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/common.c b/tools/common.c
index 02c0655..8277342 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -73,7 +73,7 @@ void die_errno(int err, const char *fmt, ...)
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
- fprintf(stderr, ": %s\n", strerror(errno));
+ fprintf(stderr, ": %s\n", strerror(err));
exit(1);
}