aboutsummaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dir.c b/dir.c
index 19d37dd876..aa3a4b989e 100644
--- a/dir.c
+++ b/dir.c
@@ -250,6 +250,7 @@ fnmatch(pat, string, flags)
s = rb_path_next(s);
if (*s) {
INC_S();
+ ++pat;
break;
}
return FNM_NOMATCH;