X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fzebramap.c;h=238c0343acb075d73619e3a274b9121c5f869f18;hb=eca0079ec91514049034728df2b91a26566a5d89;hp=30f74c63e49764e314b164a6fdc5163dff5ae297;hpb=be32b4e5c154545c2b91b76144d6cbf1238f969a;p=idzebra-moved-to-github.git diff --git a/util/zebramap.c b/util/zebramap.c index 30f74c6..238c034 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -1,4 +1,4 @@ -/* $Id: zebramap.c,v 1.42 2005-06-15 21:31:45 adam Exp $ +/* $Id: zebramap.c,v 1.43 2005-08-30 12:23:02 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -189,6 +189,7 @@ ZebraMaps zebra_maps_open (Res res, const char *base) struct zebra_map *zebra_map_get (ZebraMaps zms, unsigned reg_id) { + assert(reg_id >= 0 && reg_id <= 255); return zms->lookup_array[reg_id]; }