Bump year
[yaz-moved-to-github.git] / ztest / read-grs.c
index 2bc09f9..09472d9 100644 (file)
@@ -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.8 2003-01-06 08:20:29 adam Exp $
+ * $Id: read-grs.c,v 1.12 2005-01-15 19:47:16 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;