X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fber_int.c;h=cc02d3b4202f1efeace6d57eef51d08b6804201e;hb=c82db01c9fc0b51254ec6ead5fe3b503ca098ca0;hp=7717c071765628ecd61956e7e364770d07f5cbce;hpb=69b1d8e7b437179163fe97b7cbead51a56835f2a;p=yaz-moved-to-github.git diff --git a/src/ber_int.c b/src/ber_int.c index 7717c07..cc02d3b 100644 --- a/src/ber_int.c +++ b/src/ber_int.c @@ -77,7 +77,7 @@ int ber_encinteger(ODR o, Odr_int val) len = sizeof(uval) - i; if (ber_enclen(o, len, 1, 1) != 1) return -1; - if (odr_write2(o, (const char *) tmp + i, len) < 0) + if (odr_write(o, (const char *) tmp + i, len) < 0) return -1; return 0; }