about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/fnmatch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index 2d6f6afbd5..6d48be3ca4 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;