PR/38737: cheusov at tut dot by: Don't build the character class table

starting at 0, because will always be treated as the empty string DuH!
This commit is contained in:
christos 2008-05-25 16:28:25 +00:00
parent 4b5fb67334
commit f7e42af424

2
dist/nawk/b.c vendored
View File

@ -837,7 +837,7 @@ int relex(void) /* lexical analyzer for reparse */
if (cc->cc_name != NULL && prestr[1 + cc->cc_namelen] == ':' &&
prestr[2 + cc->cc_namelen] == ']') {
prestr += cc->cc_namelen + 3;
for (i = 0; i < NCHARS; i++) {
for (i = 1; i < NCHARS; i++) {
if (!adjbuf(&buf, &bufsz, bp-buf+1, 100, &bp, "relex2"))
FATAL("out of space for reg expr %.10s...", lastre);
if (cc->cc_func(i)) {