summaryrefslogtreecommitdiffabout
path: root/src/diag.c
Side-by-side diff
Diffstat (limited to 'src/diag.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diag.c b/src/diag.c
index bdbb407..db96e75 100644
--- a/src/diag.c
+++ b/src/diag.c
@@ -37,7 +37,7 @@ default_print_diag(grecs_locus_t const *locus, int err, int errcode,
fprintf(stderr, "warning: ");
fprintf(stderr, "%s", msg);
if (errcode)
- fprintf(stderr, ": %s", strerror(errno));
+ fprintf(stderr, ": %s", strerror(errcode));
fputc('\n', stderr);
}

Return to:

Send suggestions and report system problems to the System administrator.