+++ emu2-master/src/dosnames.c 2021-04-14 07:15:44.036839086 -0700 @@ -9,6 +9,7 @@ #include #include #include +#include #include // DOS directory entries. @@ -589,7 +590,7 @@ static struct dos_file_list *find_first_file(char *fspec) { // Now, separate the path to the spec - char *glob, *unixpath, *p = rindex(fspec, '/'); + char *glob, *unixpath, *p = strrchr(fspec, '/'); if(!p) { glob = fspec;