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