X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Falvis.c;h=e168da31d2d3e4fcab305b0f33c8a9b12a5e81d3;hb=4e67b823f05b521f193af096a40c0f64758c5fc1;hp=c9261296880b599c1bf7789d5f6eed03b261a86d;hpb=ea03b56f916419aebe22f51962d6b24c0f737124;p=idzebra-moved-to-github.git diff --git a/index/alvis.c b/index/alvis.c index c926129..e168da3 100644 --- a/index/alvis.c +++ b/index/alvis.c @@ -1,4 +1,4 @@ -/* $Id: alvis.c,v 1.14 2007-03-07 14:18:35 marc Exp $ +/* $Id: alvis.c,v 1.15 2007-03-19 21:50:39 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -632,10 +632,10 @@ static const char *snippet_doc(struct recRetrieveCtrl *p, int text_mode, else wrbuf_printf(wrbuf, "\n"); - xml_doc_str = odr_strdup(p->odr, wrbuf_buf(wrbuf)); + xml_doc_str = odr_strdup(p->odr, wrbuf_cstr(wrbuf)); zebra_snippets_destroy(res); - wrbuf_free(wrbuf, 1); + wrbuf_destroy(wrbuf); return xml_doc_str; }