X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dfa%2Fagrep.c;h=23014c0d20153a5a3117e557ca985a55517f962c;hb=e9b6a86cc5ac30d6c6331c46ef3edaa08b99a2a7;hp=2e762b62b93298fa5ecda0140493919b6a3030ef;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/dfa/agrep.c b/dfa/agrep.c index 2e762b6..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 @@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -181,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++;