aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 60d5485..ef92389 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -418,7 +418,7 @@ psend_raw_file(int p, const char *dir, const char *file)
}
if (ferror(fp)) {
- warnx("%s: %s: the error indicator is set", __func__, file);
+ warnx("%s: %s: the error indicator is set", __func__, fname);
fclose(fp);
return -1;
}
@@ -456,7 +456,8 @@ psend_file(int p, const char *dir, const char *file)
if (!feof(fp)) {
if (ferror(fp)) {
- warnx("%s: %s: the error indicator is set", __func__, file);
+ warnx("%s: %s: the error indicator is set", __func__,
+ fname);
fclose(fp);
return -1;
}