X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dfa%2Fagrep.c;h=504b50ab71b85d309b6e2b8eefa9ec7a7998fe24;hp=0d671ef15296e7e7fbc758ef24b2362036d58787;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=0052fb5520062c328006dc3537f39d28e88f3579 diff --git a/dfa/agrep.c b/dfa/agrep.c index 0d671ef..504b50a 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -184,7 +184,7 @@ static int go (int fd, struct DFA_state **dfaar) break; } for (t=s->trans, i=s->tran_no; --i >= 0; t++) - if ((unsigned) *p >= t->ch[0] + if ((unsigned) *p >= t->ch[0] && (unsigned) *p <= t->ch[1]) break; p++;