From c1ac11df763c49e7e9afb2993b172c0d575edd05 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 26 Jul 2000 16:04:48 +0000 Subject: Fixes for use outside glibc. --- posix/fnmatch_loop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'posix') 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 -- cgit 1.4.1