X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Foid.c;h=cbbc81f52f0dfe8825b331fc70c1a569e5244cd1;hb=ddac2b650c387c8ab108827c8ead16371f16340d;hp=6a41916cf079644f79da7552e91231bb194baae2;hpb=15441888880455587ad55891b2c3bc00336b8925;p=yaz-moved-to-github.git diff --git a/util/oid.c b/util/oid.c index 6a41916..cbbc81f 100644 --- a/util/oid.c +++ b/util/oid.c @@ -2,7 +2,7 @@ * 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.56 2002-08-26 09:25:56 adam Exp $ */ /* @@ -474,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; }