else
{
char dst_buf[IT_MAX_WORD];
- char str[IT_MAX_WORD];
+ WRBUF str = wrbuf_alloc();
const char *index_type;
const char *db = 0;
const char *string_index = 0;
zebraExplain_lookup_ord(zh->reg->zei, ord, &index_type, &db, &string_index);
- zebra_term_untrans(zh, index_type, dst_buf, str);
+ zebra_term_untrans(zh, index_type, dst_buf, wrbuf_cstr(str));
if (!oid_oidcmp(input_format, yaz_oid_recsyn_xml))
{
wrbuf_printf(wrbuf, "%s %s %s\n", string_index, index_type,
dst_buf);
}
+ wrbuf_destroy(str);
return 0;
}
}
/* for debugging purposes */
yaz_log(YLOG_LOG, "---------------------------");
yaz_log(YLOG_LOG, "REC SNIPPET:");
- zebra_snippets_log(rec_snippet, YLOG_LOG, 1);
+ zebra_snippets_log(rec_snippets, YLOG_LOG, 1);
yaz_log(YLOG_LOG, "---------------------------");
yaz_log(YLOG_LOG, "HIT SNIPPET:");
zebra_snippets_log(hit_snippet, YLOG_LOG, 1);