This commit is contained in:
Jack Halford 2017-03-27 01:52:49 +02:00
commit f675a821fd

View file

@ -113,7 +113,7 @@ int match_pattern(t_glob *gl, char *str, char *full_word)
if (*str != *gl->pat) if (*str != *gl->pat)
return (0); return (0);
} }
else if (*gl->pat == '?') else if (*gl->pat == '?' && *str)
; ;
else if (*gl->pat == '[') else if (*gl->pat == '[')
{ {