X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarcdisp.c;h=ef0642545dbd8802d655f3aab7bcdaeed72b7527;hp=e42080a3f28c2fe9a74514251d0758dbbb3dc366;hb=905df6869e5ad8ab9f34590cce771fe50c444473;hpb=2af25caef50026e60e2ae91dbf175e86c31463df diff --git a/src/marcdisp.c b/src/marcdisp.c index e42080a..ef06425 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: marcdisp.c,v 1.10 2004-11-26 11:01:05 adam Exp $ + * $Id: marcdisp.c,v 1.11 2004-12-30 00:12:13 adam Exp $ */ /** @@ -84,11 +84,11 @@ int yaz_marc_decode_wrbuf (yaz_marc_t mt, const char *buf, int bsize, WRBUF wr) /* ballout if bsize is known and record_length is less than that */ if (bsize != -1 && record_length > bsize) return -1; - if (isdigit(buf[10])) + if (isdigit(((const unsigned char *) buf)[10])) indicator_length = atoi_n (buf+10, 1); else indicator_length = 2; - if (isdigit(buf[11])) + if (isdigit(((const unsigned char *) buf)[11])) identifier_length = atoi_n (buf+11, 1); else identifier_length = 2;