X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcharneg.c;h=4794d7cbc061f74967cca266ec5e34351f47ce2f;hp=4125d26dc3cc24853930ad72b01d9f5cdb6d31df;hb=69b1d8e7b437179163fe97b7cbead51a56835f2a;hpb=cabcc223cd47503763e7c42969e3be30c58276af;ds=sidebyside diff --git a/src/charneg.c b/src/charneg.c index 4125d26..4794d7c 100644 --- a/src/charneg.c +++ b/src/charneg.c @@ -34,7 +34,7 @@ static Z_External* z_ext_record2(ODR o, const char *buf) p->which = Z_External_octet; if (!(p->u.octet_aligned = (Odr_oct *)odr_malloc(o, sizeof(Odr_oct)))) return 0; - if (!(p->u.octet_aligned->buf = (unsigned char *)odr_malloc(o, len))) + if (!(p->u.octet_aligned->buf = (char *)odr_malloc(o, len))) return 0; p->u.octet_aligned->len = len; #if OCT_SIZE