From: Adam Dickmeiss Date: Mon, 21 May 2012 13:24:47 +0000 (+0200) Subject: zoom: use WRBUF for CCL buffer X-Git-Tag: v1.3.37~15 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=8e3df507f47705eca10f7686f012ef7e08bb147d;p=metaproxy-moved-to-github.git zoom: use WRBUF for CCL buffer --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index a75c4d4..eb8d9b7 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -2068,8 +2068,7 @@ next_proxy: cql_parser_destroy(cp); return; } - char ccl_buf[1024]; - r = cql_to_ccl_buf(cn, ccl_buf, sizeof(ccl_buf)); + r = cql_to_ccl(cn, wrbuf_vp_puts, ccl_wrbuf); if (r) { error = YAZ_BIB1_MALFORMED_QUERY; @@ -2097,8 +2096,6 @@ next_proxy: mp::wrbuf sort_spec_wrbuf; yaz_srw_sortkeys_to_sort_spec(wrbuf_cstr(sru_sortkeys_wrbuf), sort_spec_wrbuf); - wrbuf_puts(ccl_wrbuf, ccl_buf); - yaz_tok_cfg_t tc = yaz_tok_cfg_create(); yaz_tok_parse_t tp = yaz_tok_parse_buf(tc, wrbuf_cstr(sort_spec_wrbuf));