summary refs log tree commit diff
path: root/posix/fnmatch.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-12 22:10:30 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-12 22:10:30 +0000
commit9fc19e48b594911f45a3df47218e47c42238ceb8 (patch)
treec91e4e0ec341bdcde59263ff9ce6104e804fe2f4 /posix/fnmatch.c
parentc090aa15110f9c3781150c4e1d7d3733b455459e (diff)
downloadglibc-9fc19e48b594911f45a3df47218e47c42238ceb8.tar.gz
glibc-9fc19e48b594911f45a3df47218e47c42238ceb8.tar.xz
glibc-9fc19e48b594911f45a3df47218e47c42238ceb8.zip
Update.
1998-12-12  Geoff Keating  <geoffk@ozemail.com.au> 
 
	* posix/fnmatch.c (fnmatch): Arguments to FOLD must not have 
	side-effects. 
 
Diffstat (limited to 'posix/fnmatch.c')
-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;