From: Adam Dickmeiss Date: Wed, 11 Sep 2013 09:42:01 +0000 (+0200) Subject: YAZ 5 updates X-Git-Tag: v2.0.56~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e2cda8e171365e13ca393afaa4a5df2fb3a2c5ae;p=idzebra-moved-to-github.git YAZ 5 updates --- diff --git a/index/zebrasrv.c b/index/zebrasrv.c index dc57a48..9d3d771 100644 --- a/index/zebrasrv.c +++ b/index/zebrasrv.c @@ -246,10 +246,11 @@ static void search_terms(ZebraHandle zh, bend_search_rr *r) break; case Z_Term_general: term->which = Z_Term_general; - term->u.general = odr_malloc(r->stream, sizeof(*term->u.general)); - term->u.general->size = term->u.general->len = len; - term->u.general->buf = odr_malloc(r->stream, len); - memcpy(term->u.general->buf, outbuf, len); + term->u.general = odr_create_Odr_oct(r->stream, +#if YAZ_VERSIONL < 0x50000 + (unsigned char *) +#endif + outbuf, len); break; default: term->which = Z_Term_general;