X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fmod_safari.c;h=ad2f5dba9b3c4327cffa953d5dfa7090a72c33aa;hb=HEAD;hp=d36c450ce1799460c820fe0e8e599d12e5a1dafc;hpb=ac13dceecd5f75669820819575daf88e0add5c8d;p=idzebra-moved-to-github.git diff --git a/index/mod_safari.c b/index/mod_safari.c index d36c450..ad2f5db 100644 --- a/index/mod_safari.c +++ b/index/mod_safari.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 @@ -151,9 +151,9 @@ static int filter_extract(void *clientData, struct recExtractCtrl *p) recWord.index_type = type_cstr; if (tinfo->segments) { - if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT + if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT ZINT_FORMAT " %39s %n", - &recWord.record_id, &recWord.section_id, + &recWord.record_id, &recWord.section_id, &recWord.segment, &recWord.seqno, field, &nor) < 5) @@ -277,7 +277,7 @@ static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p) } p->output_format = yaz_oid_recsyn_sutrs; p->rec_buf = filter_buf; - p->rec_len = filter_ptr; + p->rec_len = filter_ptr; return 0; }