Goodbye to Odr_oct.size
[yaz-moved-to-github.git] / src / seshigh.c
index 77539a7..b900a59 100644 (file)
@@ -1051,9 +1051,8 @@ static void srw_bend_search(association *assoc,
                     srw_res->resultSetIdleTime =
                         odr_intdup(assoc->encode, *rr.srw_setnameIdleTime );
                }
-                
+
                 srw_res->facetList = yaz_oi_get_facetlist(&rr.search_info);
-                yaz_log(YLOG_LOG, "facetList res = %p",srw_res->facetList);
                 if (start > rr.hits || start < 1)
                 {
                     /* if hits<=0 and start=1 we don't return a diagnostic */
@@ -3128,8 +3127,8 @@ static Z_APDU *process_scanRequest(association *assoc, request *reqb)
                 t->term->which = Z_Term_general;
                 t->term->u.general = o =
                     (Odr_oct *)odr_malloc(assoc->encode, sizeof(Odr_oct));
-                o->buf = (unsigned char *)
-                    odr_malloc(assoc->encode, o->len = o->size =
+                o->buf = (char *)
+                    odr_malloc(assoc->encode, o->len =
                                strlen(bsrr->entries[i].term));
                 memcpy(o->buf, bsrr->entries[i].term, o->len);
                 yaz_log(YLOG_DEBUG, "  term #%d: '%s' (" ODR_INT_PRINTF ")", i,