projects
/
yazproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WRBUF updates
[yazproxy-moved-to-github.git]
/
src
/
yaz-proxy.cpp
diff --git
a/src/yaz-proxy.cpp
b/src/yaz-proxy.cpp
index
b1d18c0
..
6c99ef3
100644
(file)
--- a/
src/yaz-proxy.cpp
+++ b/
src/yaz-proxy.cpp
@@
-1,4
+1,4
@@
-/* $Id: yaz-proxy.cpp,v 1.70 2006-07-06 11:50:26 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.72 2007-03-20 07:54:27 adam Exp $
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
Copyright (c) 1998-2006, Index Data.
This file is part of the yazproxy.
@@
-1039,7
+1039,7
@@
void Yaz_Proxy::convert_records_charset(Z_NamePlusRecordList *p,
npr->u.databaseRecord =
z_ext_record(odr_encode(), ent->value, wrbuf_buf(w),
wrbuf_len(w));
npr->u.databaseRecord =
z_ext_record(odr_encode(), ent->value, wrbuf_buf(w),
wrbuf_len(w));
- wrbuf_free(w, 1);
+ wrbuf_destroy(w);
}
else if (ent->value == VAL_TEXT_XML)
{
}
else if (ent->value == VAL_TEXT_XML)
{
@@
-1047,8
+1047,8
@@
void Yaz_Proxy::convert_records_charset(Z_NamePlusRecordList *p,
}
else if (r->which == Z_External_octet)
{
}
else if (r->which == Z_External_octet)
{
- int rlen;
- char *result;
+ size_t rlen;
+ const char *result;
if (yaz_marc_decode_buf(mt,
(char*) r->u.octet_aligned->buf,
r->u.octet_aligned->len,
if (yaz_marc_decode_buf(mt,
(char*) r->u.octet_aligned->buf,
r->u.octet_aligned->len,
@@
-1093,12
+1093,12
@@
void Yaz_Proxy::convert_to_marcxml(Z_NamePlusRecordList *p,
odr_encode(), VAL_TEXT_XML,
wrbuf_buf(w), wrbuf_len(w)
);
odr_encode(), VAL_TEXT_XML,
wrbuf_buf(w), wrbuf_len(w)
);
- wrbuf_free(w, 1);
+ wrbuf_destroy(w);
}
else if (r->which == Z_External_octet)
{
}
else if (r->which == Z_External_octet)
{
- int rlen;
- char *result;
+ size_t rlen;
+ const char *result;
if (yaz_marc_decode_buf(mt, (char*) r->u.octet_aligned->buf,
r->u.octet_aligned->len,
&result, &rlen))
if (yaz_marc_decode_buf(mt, (char*) r->u.octet_aligned->buf,
r->u.octet_aligned->len,
&result, &rlen))
@@
-1718,7
+1718,7
@@
Z_APDU *Yaz_Proxy::result_set_optimize(Z_APDU *apdu)
return 0;
}
return 0;
}
- char query_str[120];
+ char query_str[4096];
this_query->print(query_str, sizeof(query_str)-1);
yaz_log(YLOG_LOG, "%sSearch %s", m_session_str, query_str);
this_query->print(query_str, sizeof(query_str)-1);
yaz_log(YLOG_LOG, "%sSearch %s", m_session_str, query_str);