diff options
| author | Daniel C. Sobral <dcs@FreeBSD.org> | 2002-03-20 13:13:15 +0000 |
|---|---|---|
| committer | Daniel C. Sobral <dcs@FreeBSD.org> | 2002-03-20 13:13:15 +0000 |
| commit | dd64ceedac10921c3c965347c09955a280eb8968 (patch) | |
| tree | 3bd232bdfdde4394349146e7d3062da941e6f6e3 /lib/libc/regex/regcomp.c | |
| parent | b1f09b45ded81d08b7b1b9ac8f38ce3bf7919e13 (diff) | |
Notes
Diffstat (limited to 'lib/libc/regex/regcomp.c')
| -rw-r--r-- | lib/libc/regex/regcomp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index bf92f2c07460..150daba11247 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -2045,7 +2045,8 @@ struct re_guts *g; g->mlen + ssuffix - suffix); suffix++; } - ssuffix = pmatches[ssuffix]; + if (suffix < g->mlen) + ssuffix = pmatches[ssuffix]; } free(pmatches); |
