diff options
Diffstat (limited to 'src/diag.c')
-rw-r--r-- | src/diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -34,13 +34,13 @@ default_print_diag(grecs_locus_t const *locus, int err, int errcode, fputc(' ', stderr); } if (!err) fprintf(stderr, "warning: "); fprintf(stderr, "%s", msg); if (errcode) - fprintf(stderr, ": %s", strerror(errno)); + fprintf(stderr, ": %s", strerror(errcode)); fputc('\n', stderr); } void (*grecs_print_diag_fun)(grecs_locus_t const *, int, int, const char *msg) = default_print_diag; |