diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-10-01 09:22:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-10-01 09:22:32 +0000 |
commit | dd385d7c7b43cdcee307801c9fc02db5afbde520 (patch) | |
tree | 93e925fcf2581004450cb8e2929170b9c694923f /posix/regex_internal.c | |
parent | 988c1ea8a9f44a8f04c2585ced8379bdc12ed0ef (diff) | |
download | glibc-dd385d7c7b43cdcee307801c9fc02db5afbde520.tar glibc-dd385d7c7b43cdcee307801c9fc02db5afbde520.tar.gz glibc-dd385d7c7b43cdcee307801c9fc02db5afbde520.tar.bz2 glibc-dd385d7c7b43cdcee307801c9fc02db5afbde520.zip |
(re_string_reconstruct): Reset the member LEN and STOP.
Diffstat (limited to 'posix/regex_internal.c')
-rw-r--r-- | posix/regex_internal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/regex_internal.c b/posix/regex_internal.c index 52540dcea6..92f59b4c9d 100644 --- a/posix/regex_internal.c +++ b/posix/regex_internal.c @@ -422,6 +422,8 @@ re_string_reconstruct (pstr, idx, eflags, newline) if (MB_CUR_MAX > 1) memset (&pstr->cur_state, '\0', sizeof (mbstate_t)); #endif /* RE_ENABLE_I18N */ + pstr->len += pstr->raw_mbs_idx; + pstr->stop += pstr->raw_mbs_idx; pstr->valid_len = pstr->raw_mbs_idx = 0; pstr->tip_context = ((eflags & REG_NOTBOL) ? CONTEXT_BEGBUF : CONTEXT_NEWLINE | CONTEXT_BEGBUF); |