X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_any.c;h=0002944f832e601f7a083870b353635b4b8c26ed;hp=3322a02a451a8d2c5566ee933b59f19648deef74;hb=cabcc223cd47503763e7c42969e3be30c58276af;hpb=f720562471a064dba92a465d999aa833e59d69b1 diff --git a/src/ber_any.c b/src/ber_any.c index 3322a02..0002944 100644 --- a/src/ber_any.c +++ b/src/ber_any.c @@ -32,7 +32,10 @@ int ber_any(ODR o, Odr_any **p) } (*p)->buf = (unsigned char *)odr_malloc(o, res); memcpy((*p)->buf, o->bp, res); - (*p)->len = (*p)->size = res; + (*p)->len = res; +#if OCT_SIZE + (*p)->size = res; +#endif o->bp += res; return 1; case ODR_ENCODE: