aboutsummaryrefslogtreecommitdiff
path: root/posix/fnmatch_loop.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-22 01:21:50 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-22 01:21:50 +0000
commitbd8fbd5724003b8c49c949cbceb7f735eb90afb4 (patch)
tree0eb594af8dc02b643fe736770fbea5fee0f64a14 /posix/fnmatch_loop.c
parent37ada9da6e05ab37eb3031c473b9898d6def4334 (diff)
downloadglibc-bd8fbd5724003b8c49c949cbceb7f735eb90afb4.tar
glibc-bd8fbd5724003b8c49c949cbceb7f735eb90afb4.tar.gz
glibc-bd8fbd5724003b8c49c949cbceb7f735eb90afb4.tar.bz2
glibc-bd8fbd5724003b8c49c949cbceb7f735eb90afb4.zip
Update.
* posix/fnmatch_loop.c: Handle ranges outside glibc correctly.
Diffstat (limited to 'posix/fnmatch_loop.c')
-rw-r--r--posix/fnmatch_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
index 80f6796b1e..a453aec835 100644
--- a/posix/fnmatch_loop.c
+++ b/posix/fnmatch_loop.c
@@ -788,7 +788,7 @@ FCT (pattern, string, no_leading_period, flags)
return FNM_NOMATCH;
/* It is a range. */
- if (cold <= fn && fn <= c)
+ if (cold <= fn && fn <= cend)
goto matched;
#endif