X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_cons.c;fp=src%2Fodr_cons.c;h=76de6213d1263b46932279b9f8ae4f46cd46f541;hp=fa203d8eb8c986f2487ec4d5dac38307bec8c20a;hb=69b1d8e7b437179163fe97b7cbead51a56835f2a;hpb=cabcc223cd47503763e7c42969e3be30c58276af diff --git a/src/odr_cons.c b/src/odr_cons.c index fa203d8..76de621 100644 --- a/src/odr_cons.c +++ b/src/odr_cons.c @@ -88,11 +88,11 @@ int odr_constructed_begin(ODR o, void *xxp, int zclass, int tag, o->op->stack_top->name = name ? name : "?"; if (o->direction == ODR_ENCODE) { - static unsigned char dummy[sizeof(int)+1]; + static char dummy[sizeof(int)+1]; o->op->stack_top->lenlen = lenlen; - if (odr_write(o, dummy, lenlen) < 0) /* dummy */ + if (odr_write2(o, dummy, lenlen) < 0) /* dummy */ { ODR_STACK_POP(o); return 0;