X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fmod_grs_sgml.c;h=5dacbf3a6e9d9b60f9040212c377a56d06952ca5;hp=82d719dba3d40516374b8d2e2dc3651f66ad7201;hb=dcda88860b03641b6900d43135ca769f005105e8;hpb=ac13dceecd5f75669820819575daf88e0add5c8d diff --git a/index/mod_grs_sgml.c b/index/mod_grs_sgml.c index 82d719d..5dacbf3 100644 --- a/index/mod_grs_sgml.c +++ b/index/mod_grs_sgml.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 @@ -40,7 +40,7 @@ int sgml_getc (void *clientData) { struct sgml_getc_info *p = (struct sgml_getc_info *) clientData; int res; - + if (p->off < p->size) return p->buf[(p->off)++]; if (p->size < p->buf_size) @@ -62,7 +62,7 @@ static data1_node *grs_read_sgml (struct grs_read_info *p) struct sgml_getc_info *sgi = (struct sgml_getc_info *) p->clientData; data1_node *node; int res; - + sgi->moffset = p->stream->tellf(p->stream); sgi->stream = p->stream; sgi->off = 0;