X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fread-marc.c;h=c936a60b32983b906f87a875b3adbac9394b4967;hb=0efb05eb1d586ad15c3c0b2f564b3cb58edbcd1b;hp=cc9ca29ca86402c557a957243e0e99c20035243e;hpb=1121eeb134f61c6c2510143858db59045c1b6757;p=yaz-moved-to-github.git diff --git a/ztest/read-marc.c b/ztest/read-marc.c index cc9ca29..c936a60 100644 --- a/ztest/read-marc.c +++ b/ztest/read-marc.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 2002, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: read-marc.c,v 1.4 2002-12-16 13:13:53 adam Exp $ + * $Id: read-marc.c,v 1.6 2005-01-15 19:47:16 adam Exp $ */ /* @@ -1537,7 +1537,7 @@ static int atoin (const char *buf, int n) int val = 0; while (--n >= 0) { - if (isdigit(*buf)) + if (isdigit(*(const unsigned char *) buf)) val = val*10 + (*buf - '0'); buf++; }