summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDaniel C. Sobral <dcs@FreeBSD.org>2000-07-06 05:19:29 +0000
committerDaniel C. Sobral <dcs@FreeBSD.org>2000-07-06 05:19:29 +0000
commit03b59f2038ca42a91bf096323bcb88f4a6dd4ed1 (patch)
tree2c34a97af6475baccd0d5bc60d89f92c6c10c4d5 /lib/libc
parent9ac104e4432f87f111e4bfc732192d7a4bcc6cb3 (diff)
Notes
Diffstat (limited to 'lib/libc')
-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 fc50924837ae..9d1887895e30 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