Skip to content
Snippets Groups Projects
Commit d84af221 authored by deuce's avatar deuce
Browse files

Paranoia against braindead masks such as "********.da*"

parent 7c187f35
No related branches found
No related tags found
No related merge requests found
......@@ -882,7 +882,8 @@ BOOL DLLCALL wildmatch(const char *fname, const char *spec, BOOL path)
return(TRUE);
break;
case '*':
specp++;
while(*specp=='*')
specp++;
for(;*fnamep!=*specp && *fnamep;fnamep++) {
if(path && IS_PATH_DELIM(*fnamep))
return(FALSE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment