diff options
Diffstat (limited to 'posix/fnmatch.c')
-rw-r--r-- | posix/fnmatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/fnmatch.c b/posix/fnmatch.c index 2d6f6af..6d48be3 100644 --- a/posix/fnmatch.c +++ b/posix/fnmatch.c @@ -245,7 +245,8 @@ fnmatch (pattern, string, flags) { if (*p == '\0') return FNM_NOMATCH; - c = FOLD (*p++); + c = FOLD (*p); + ++p; if (c == fn) goto matched; |