From 60c28835b1d333685f255f2950b278d6e446b646 Mon Sep 17 00:00:00 2001 From: Thomas Flouris Date: Thu, 20 Jul 2017 16:24:40 +0100 Subject: [PATCH] corrected file name in error messages when failing to open files --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index b195b51..9929586 100644 --- a/src/util.c +++ b/src/util.c @@ -165,7 +165,7 @@ FILE * xopen(const char * filename, const char * mode) { FILE * out = fopen(filename, mode); if (!out) - fatal("Cannot open file %s", opt_outfile); + fatal("Cannot open file %s", filename); return out; }