(simple_search): Fix previous change.
This commit is contained in:
parent
7faa809534
commit
3dcf00668c
1 changed files with 3 additions and 2 deletions
|
@ -1481,13 +1481,14 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
|
|||
{
|
||||
/* Try matching at position POS. */
|
||||
int this_pos = pos - len;
|
||||
int this_pos_byte = CHAR_TO_BYTE (this_pos);
|
||||
int this_pos_byte;
|
||||
int this_len = len;
|
||||
int this_len_byte = len_byte;
|
||||
unsigned char *p = pat;
|
||||
|
||||
if (this_pos < lim || this_pos_byte < lim_byte)
|
||||
if (this_pos < lim || (pos_byte - len_byte) < lim_byte)
|
||||
goto stop;
|
||||
this_pos_byte = CHAR_TO_BYTE (this_pos);
|
||||
match_byte = pos_byte - this_pos_byte;
|
||||
|
||||
while (this_len > 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue