summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-07-06 05:19:29 +0000
committerdcs <dcs@FreeBSD.org>2000-07-06 05:19:29 +0000
commit5d7c5eed08796384e29fb20ecd03b3c29853e308 (patch)
treec42f99e75c0631d65a8f6c665a6fd38c895db3c5 /lib/libc/regex
parent39c8ef1c21585f1ab468dcc68eda5ee54ef7b276 (diff)
downloadFreeBSD-src-5d7c5eed08796384e29fb20ecd03b3c29853e308.zip
FreeBSD-src-5d7c5eed08796384e29fb20ecd03b3c29853e308.tar.gz
Use UCHAR_MAX consistently.
Diffstat (limited to 'lib/libc/regex')
-rw-r--r--lib/libc/regex/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index fc50924..9d18878 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -1949,7 +1949,7 @@ struct re_guts *g;
/* If the character does not exist in the pattern, the jump
* is equal to the number of characters in the pattern.
*/
- for (ch = 0; ch < 256; ch++)
+ for (ch = 0; ch < (UCHAR_MAX+1); ch++)
g->charjump[ch] = g->mlen;
/* If the character does exist, compute the jump that would
OpenPOWER on IntegriCloud