diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-12-12 22:10:30 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-12-12 22:10:30 +0000 |
commit | 9fc19e48b594911f45a3df47218e47c42238ceb8 (patch) | |
tree | c91e4e0ec341bdcde59263ff9ce6104e804fe2f4 /posix/fnmatch.c | |
parent | c090aa15110f9c3781150c4e1d7d3733b455459e (diff) | |
download | glibc-9fc19e48b594911f45a3df47218e47c42238ceb8.zip glibc-9fc19e48b594911f45a3df47218e47c42238ceb8.tar.gz glibc-9fc19e48b594911f45a3df47218e47c42238ceb8.tar.bz2 |
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.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; |