file_io: fix extension compare #2.

This commit is contained in:
sorgelig
2019-06-09 16:03:15 +08:00
parent 4ad9a8ae49
commit ba23d6bdec

View File

@@ -1098,9 +1098,9 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
}
char *fext = strrchr(de->d_name, '.');
if(fext) fext++;
while(!found && *ext && fext)
{
fext++;
char e[4];
memcpy(e, ext, 3);
if (e[2] == ' ')