X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_oct.c;h=25829c10ee9076166e6a3c8203cf3ae2c426252a;hp=1f547bf8193487f3420865054c61fccbbc48746e;hb=c82db01c9fc0b51254ec6ead5fe3b503ca098ca0;hpb=69b1d8e7b437179163fe97b7cbead51a56835f2a diff --git a/src/ber_oct.c b/src/ber_oct.c index 1f547bf..25829c1 100644 --- a/src/ber_oct.c +++ b/src/ber_oct.c @@ -89,7 +89,7 @@ int ber_octetstring(ODR o, Odr_oct *p, int cons) return 0; if (p->len == 0) return 1; - if (odr_write2(o, p->buf, p->len) < 0) + if (odr_write(o, p->buf, p->len) < 0) return 0; return 1; case ODR_PRINT: