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,6 +882,7 @@ BOOL DLLCALL wildmatch(const char *fname, const char *spec, BOOL path) ...@@ -882,6 +882,7 @@ BOOL DLLCALL wildmatch(const char *fname, const char *spec, BOOL path)
return(TRUE); return(TRUE);
break; break;
case '*': case '*':
while(*specp=='*')
specp++; specp++;
for(;*fnamep!=*specp && *fnamep;fnamep++) { for(;*fnamep!=*specp && *fnamep;fnamep++) {
if(path && IS_PATH_DELIM(*fnamep)) if(path && IS_PATH_DELIM(*fnamep))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment