Fix warnings (issued by VC 6)
[yaz-moved-to-github.git] / util / oid.c
index 1057871..cbbc81f 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1995-2002, Index Data
  * See the file LICENSE for details.
  *
- * $Id: oid.c,v 1.54 2002-04-01 12:27:15 adam Exp $
+ * $Id: oid.c,v 1.56 2002-08-26 09:25:56 adam Exp $
  */
 
 /*
@@ -88,8 +88,10 @@ static oident standard_oids[] =
     {PROTO_Z3950,   CLASS_ATTSET,  VAL_HOLDINGS,     {3,16,-1},
      "Holdings"},
 
-    {PROTO_Z3950,   CLASS_ATTSET,  VAL_THESAURUS,    {3,1000,81,1,-1},
+    {PROTO_Z3950,   CLASS_ATTSET,  VAL_THESAURUS,    {3,1000,81,1,-1},     
      "Thesaurus-attset"},
+    {PROTO_Z3950,   CLASS_ATTSET,  VAL_IDXPATH,      {3,1000,81,2,-1},
+     "IDXPATH"},
     {PROTO_Z3950,   CLASS_DIAGSET, VAL_BIB1,         {4,1,-1},
      "Bib-1"},
     {PROTO_Z3950,   CLASS_DIAGSET, VAL_DIAG1,        {4,2,-1},
@@ -472,7 +474,7 @@ struct oident *oid_addent (int *oid, enum oid_proto proto,
            int i;
 
            sprintf (desc_str, "%d", *oid);
-           for (i = 1; oid[i] >= 0; i++)
+           for (i = 1; i < 12 && oid[i] >= 0; i++)
                sprintf (desc_str+strlen(desc_str), ".%d", oid[i]);
            desc = desc_str;
        }