X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ztest%2Fread-grs.c;h=18b668f56564c7df4a264b1e26131ec7f89f2b90;hp=9cc9c48b4c3b2f70b679d89a610f3a5121d333db;hb=2b3dd45defce5c722aea0d5cecfbd8db7df55818;hpb=eb14cf14b5b176a8e2b73ca251d625e47223f116 diff --git a/ztest/read-grs.c b/ztest/read-grs.c index 9cc9c48..18b668f 100644 --- a/ztest/read-grs.c +++ b/ztest/read-grs.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2002, Index Data. + * Copyright (c) 1995-2003, Index Data. * See the file LICENSE for details. * - * $Id: read-grs.c,v 1.7 2002-03-18 21:33:48 adam Exp $ + * $Id: read-grs.c,v 1.11 2004-12-30 00:18:04 adam Exp $ */ /* @@ -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; @@ -42,7 +42,7 @@ static Z_GenericRecord *read_grs1(FILE *f, ODR o) return r; if (sscanf(buf, "(%d,%[^)])", &type, value) != 2) { - yaz_log(LOG_WARN, "Bad data in '%s'", buf); + yaz_log(YLOG_WARN, "Bad data in '%s'", buf); return 0; } if (!type && *value == '0') @@ -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;