No unsigned char's in public API (except for iconv)
[yaz-moved-to-github.git] / src / odr_cons.c
index fa203d8..76de621 100644 (file)
@@ -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;