X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fagrep.c;h=705abe1fef6a0c51f75fb07c90218d399f104875;hb=2b86700a060db9a529b7227a1d3a9175564cd931;hp=0d671ef15296e7e7fbc758ef24b2362036d58787;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/dfa/agrep.c b/dfa/agrep.c index 0d671ef..705abe1 100644 --- a/dfa/agrep.c +++ b/dfa/agrep.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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++;