X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fber_any.c;h=be2394650bffb1718a8618d0ee6edf298fb277a1;hb=612ac7d30003582e44d4184c830eee7f1a1a0443;hp=e4bcef38b5b6e4a1062d93cdafce07ce73a72a1e;hpb=69b1d8e7b437179163fe97b7cbead51a56835f2a;p=yaz-moved-to-github.git diff --git a/src/ber_any.c b/src/ber_any.c index e4bcef3..be23946 100644 --- a/src/ber_any.c +++ b/src/ber_any.c @@ -33,13 +33,10 @@ int ber_any(ODR o, Odr_any **p) (*p)->buf = (char *)odr_malloc(o, res); memcpy((*p)->buf, o->bp, res); (*p)->len = res; -#if OCT_SIZE - (*p)->size = res; -#endif o->bp += res; return 1; case ODR_ENCODE: - if (odr_write2(o, (*p)->buf, (*p)->len) < 0) + if (odr_write(o, (*p)->buf, (*p)->len) < 0) return 0; return 1; default: odr_seterror(o, OOTHER, 3); return 0;