X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dfa%2Fagrep.c;h=23014c0d20153a5a3117e557ca985a55517f962c;hp=0d671ef15296e7e7fbc758ef24b2362036d58787;hb=e2e073b5c947e996304ed7d577497af5e9a879ee;hpb=ac13dceecd5f75669820819575daf88e0add5c8d diff --git a/dfa/agrep.c b/dfa/agrep.c index 0d671ef..23014c0 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) 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++;