updated for version 7.0166
diff --git a/src/main.c b/src/main.c
index fd4f4e4..19bdb09 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2061,6 +2061,12 @@
 		    mch_exit(2);
 	    }
 #endif
+
+#ifdef USE_FNAME_CASE
+	    /* Make the case of the file name match the actual file. */
+	    fname_case(p, 0);
+#endif
+
 	    alist_add(&global_alist, p,
 #if (!defined(UNIX) && !defined(__EMX__)) || defined(ARCHIE)
 		    parmp->literal ? 2 : 0	/* add buffer nr after exp. */