Commit Diff


commit - 5861a94b6afa2ebb8f31857a2fa571899ef00823
commit + c46405e02d4701275b692a5707366f484cb911b4
blob - 60d5485782ee77b4588a39142d1d7917fa3294da
blob + ef923893174f79e01e945135b95e4dbe5d1390a4
--- FICS/utils.c
+++ FICS/utils.c
@@ -418,7 +418,7 @@ psend_raw_file(int p, const char *dir, const char *fil
 	}
 
 	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;
 		}