X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr.c;h=e424b20e17a00fa09d0d766506bc871f2ecccb94;hb=a7585fd1220c684189091e7fba2c5d6cf436031e;hp=18a29f873c42cc2e616d0a45422881dee0bec7a3;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;p=yaz-moved-to-github.git diff --git a/src/odr.c b/src/odr.c index 18a29f8..e424b20 100644 --- a/src/odr.c +++ b/src/odr.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -272,8 +272,8 @@ void odr_destroy(ODR o) void odr_setbuf(ODR o, char *buf, int len, int can_grow) { odr_seterror(o, ONONE, 0); - o->bp = (unsigned char *) buf; - o->buf = (unsigned char *) buf; + o->bp = buf; + o->buf = buf; o->op->can_grow = can_grow; o->top = o->pos = 0; o->size = len;