projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
988c1ea
)
(re_string_reconstruct): Reset the member LEN and STOP.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 1 Oct 2002 09:22:32 +0000
(09:22 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 1 Oct 2002 09:22:32 +0000
(09:22 +0000)
posix/regex_internal.c
patch
|
blob
|
history
diff --git
a/posix/regex_internal.c
b/posix/regex_internal.c
index
52540dc
..
92f59b4
100644
(file)
--- 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);