X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fread-marc.c;h=850b7060322fb541dbcf8368e9fb3f7c8fa29274;hb=905df6869e5ad8ab9f34590cce771fe50c444473;hp=cc9ca29ca86402c557a957243e0e99c20035243e;hpb=1121eeb134f61c6c2510143858db59045c1b6757;p=yaz-moved-to-github.git diff --git a/ztest/read-marc.c b/ztest/read-marc.c index cc9ca29..850b706 100644 --- a/ztest/read-marc.c +++ b/ztest/read-marc.c @@ -2,7 +2,7 @@ * Copyright (c) 2002, Index Data. * 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.5 2004-12-30 00:18:04 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++; }