X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_oct.c;h=a64648a606ab2ca6f5cf3d33a8228f05ef67221e;hp=fc065191f8983bc7aa6f14fa05bf5ec0006c3f0b;hb=69b1d8e7b437179163fe97b7cbead51a56835f2a;hpb=cabcc223cd47503763e7c42969e3be30c58276af diff --git a/src/odr_oct.c b/src/odr_oct.c index fc06519..a64648a 100644 --- a/src/odr_oct.c +++ b/src/odr_oct.c @@ -86,7 +86,7 @@ int odr_cstring(ODR o, char **p, int opt, const char *name) t = (Odr_oct *)odr_malloc(o, sizeof(Odr_oct)); /* wrapper for octstring */ if (o->direction == ODR_ENCODE) { - t->buf = (unsigned char *) *p; + t->buf = *p; t->len = strlen(*p); #if OCT_SIZE t->size = t->len; @@ -149,7 +149,7 @@ int odr_iconv_string(ODR o, char **p, int opt, const char *name) char *outbuf = (char *) odr_malloc (o, outleft); size_t ret; - t->buf = (unsigned char *) outbuf; + t->buf = outbuf; ret = yaz_iconv(o->op->iconv_handle, &inbuf, &inleft, &outbuf, &outleft); @@ -173,7 +173,7 @@ int odr_iconv_string(ODR o, char **p, int opt, const char *name) } if (!t->buf) { - t->buf = (unsigned char *) *p; + t->buf = *p; t->len = strlen(*p); #if OCT_SIZE t->size = t->len;