From: Adam Dickmeiss Date: Wed, 22 Aug 2007 08:01:32 +0000 (+0000) Subject: Fixed bug in snippet support where first char was missed X-Git-Tag: ZEBRA.2.0.16~18 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=44c5557ecbffe5dedb6870c61e8362688bf1562c;p=idzebra-moved-to-github.git Fixed bug in snippet support where first char was missed --- diff --git a/index/extract.c b/index/extract.c index d9ed681..ac188a0 100644 --- a/index/extract.c +++ b/index/extract.c @@ -1,4 +1,4 @@ -/* $Id: extract.c,v 1.260 2007-08-21 13:27:04 adam Exp $ +/* $Id: extract.c,v 1.261 2007-08-22 08:01:32 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -208,14 +208,14 @@ static void snippet_add_incomplete_field(RecWord *p, int ord) int first = 1; const char **map = 0; const char *start = b; - + const char *last = b; + if (remain > 0) map = zebra_maps_input(zh->reg->zebra_maps, p->index_type, &b, remain, 0); while (map) { char buf[IT_MAX_WORD+1]; - const char *last = b; int i, remain; /* Skip spaces */