projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore more files
[yaz-moved-to-github.git]
/
util
/
oid.c
diff --git
a/util/oid.c
b/util/oid.c
index
6a41916
..
9724364
100644
(file)
--- a/
util/oid.c
+++ b/
util/oid.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2002, Index Data
* See the file LICENSE for details.
*
- * $Id: oid.c,v 1.55 2002-04-12 14:40:21 adam Exp $
+ * $Id: oid.c,v 1.57 2002-08-30 15:38:26 mike Exp $
*/
/*
*/
/*
@@
-87,6
+87,12
@@
static oident standard_oids[] =
"Dan-1"},
{PROTO_Z3950, CLASS_ATTSET, VAL_HOLDINGS, {3,16,-1},
"Holdings"},
"Dan-1"},
{PROTO_Z3950, CLASS_ATTSET, VAL_HOLDINGS, {3,16,-1},
"Holdings"},
+ {PROTO_Z3950, CLASS_ATTSET, VAL_USMARC, {3,17,-1},
+ "MARC"},
+ {PROTO_Z3950, CLASS_ATTSET, VAL_BIB2, {3,18,-1},
+ "Bib-2"},
+ {PROTO_Z3950, CLASS_ATTSET, VAL_ZEEREX, {3,19,-1},
+ "ZeeRex"},
{PROTO_Z3950, CLASS_ATTSET, VAL_THESAURUS, {3,1000,81,1,-1},
"Thesaurus-attset"},
{PROTO_Z3950, CLASS_ATTSET, VAL_THESAURUS, {3,1000,81,1,-1},
"Thesaurus-attset"},
@@
-474,7
+480,7
@@
struct oident *oid_addent (int *oid, enum oid_proto proto,
int i;
sprintf (desc_str, "%d", *oid);
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;
}
sprintf (desc_str+strlen(desc_str), ".%d", oid[i]);
desc = desc_str;
}