X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-marc.c;h=938804857d9d4cd280bc796fd77e11fa1cafaf23;hp=82abe546a1ff0666c11860af29457825ed606151;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hpb=b8ab484f71da48a13342fff3ebd60efd23504681 diff --git a/ztest/read-marc.c b/ztest/read-marc.c index 82abe54..9388048 100644 --- a/ztest/read-marc.c +++ b/ztest/read-marc.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: read-marc.c,v 1.9 2007-03-19 14:40:08 adam Exp $ + * $Id: read-marc.c,v 1.10 2007-05-06 20:12:22 adam Exp $ */ /* @@ -1614,7 +1614,7 @@ char *dummy_xml_record (int num, ODR odr) len = yaz_marc_decode_buf (mt, rec, -1, &result, &rlen); if (len > 1) { - rec = odr_malloc(odr, rlen+1); + rec = (char *) odr_malloc(odr, rlen+1); memcpy(rec, result, rlen); rec[rlen] = '\0'; }