mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
(re_search_stub): Return correct match length if start != 0.
This commit is contained in:
parent
cc7375ce02
commit
3081c7c528
@ -371,8 +371,8 @@ re_search_stub (bufp, string, length, start, range, stop, regs, ret_len)
|
||||
{
|
||||
if (ret_len)
|
||||
{
|
||||
assert (pmatch[0].rm_so == 0);
|
||||
rval = pmatch[0].rm_eo;
|
||||
assert (pmatch[0].rm_so == start);
|
||||
rval = pmatch[0].rm_eo - start;
|
||||
}
|
||||
else
|
||||
rval = pmatch[0].rm_so;
|
||||
|
Loading…
Reference in New Issue
Block a user