X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=ztest%2Fread-grs.c;h=09472d95b38d4e0b32171dd5b083cd5ce7a675d3;hb=48fdd95e1a026cfcc20ddd2329f0bda940f936e2;hp=1156e03c67f7be202c7d5ed6a0616e04e2cf05ec;hpb=3b96525a40981e162b959f3e842e0ff20e314320;p=yaz-moved-to-github.git diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 1156e03..09472d9 100644 --- a/ztest/read-grs.c +++ b/ztest/read-grs.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2003, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: read-grs.c,v 1.9 2004-11-18 15:18:14 heikki Exp $ + * $Id: read-grs.c,v 1.12 2005-01-15 19:47:16 adam Exp $ */ /* @@ -14,7 +14,7 @@ #include #include -#include +#include #define GRS_MAX_FIELDS 50 @@ -32,7 +32,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) while (fgets(buf = line, 512, f)) { - while (*buf && isspace(*buf)) + while (*buf && isspace(*(unsigned char *) buf)) buf++; if (!*buf || *buf == '#') continue; @@ -50,7 +50,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) if (!(buf = strchr(buf, ')'))) return 0; buf++; - while (*buf && isspace(*buf)) + while (*buf && isspace(*(unsigned char *) buf)) buf++; if (!*buf) return 0;