diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-07-26 16:04:48 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-07-26 16:04:48 +0000 |
commit | c1ac11df763c49e7e9afb2993b172c0d575edd05 (patch) | |
tree | fbbadb862df22e842f139f51f41a3c9ff726aeb8 | |
parent | 9881cbf80a73a85ef92e62bf7a40dbf4cf8e163f (diff) | |
download | glibc-c1ac11df763c49e7e9afb2993b172c0d575edd05.tar.gz glibc-c1ac11df763c49e7e9afb2993b172c0d575edd05.tar.xz glibc-c1ac11df763c49e7e9afb2993b172c0d575edd05.zip |
Fixes for use outside glibc.
-rw-r--r-- | posix/fnmatch_loop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c index b7baa7be24..38cb8f1d76 100644 --- a/posix/fnmatch_loop.c +++ b/posix/fnmatch_loop.c @@ -415,10 +415,11 @@ FCT (pattern, string, no_leading_period, flags) return FNM_NOMATCH; else { - int is_seqval = 0; int is_range = 0; #ifdef _LIBC + int is_seqval = 0; + if (c == L('[') && *p == L('.')) { uint32_t nrules = @@ -850,7 +851,7 @@ FCT (pattern, string, no_leading_period, flags) return FNM_NOMATCH; /* It is a range. */ - if (cold <= fc && fc <= c) + if (cold <= fn && fn <= c) goto matched; #endif |