X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Frecindex.c;h=1b4d561578e61880a496cf8ce2a9cdf0312b67ec;hb=83533000f9456dcab2fc171abafd84d6104d4087;hp=81e390bce12fdb7352f1ce59d0d4d535c8dc062c;hpb=967d839b42a38836f6ef9ac271f4185460bcb6ea;p=idzebra-moved-to-github.git diff --git a/index/recindex.c b/index/recindex.c index 81e390b..1b4d561 100644 --- a/index/recindex.c +++ b/index/recindex.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: recindex.c,v $ - * Revision 1.27 1999-10-29 10:02:33 adam + * Revision 1.28 1999-12-08 22:44:45 adam + * Zebra/Z'mbol dependencies added. + * + * Revision 1.27 1999/10/29 10:02:33 adam * Fixed decompression buffer overflow. * * Revision 1.26 1999/07/06 13:34:57 adam @@ -805,6 +808,14 @@ Record rec_new (Records p) sysno = p->head.index_free; p->head.index_free = entry.next; } +#if ZMBOL +#else + if (sysno > 100000) + { + logf (LOG_FATAL, "100,000 record limit reached"); + exit (1); + } +#endif (p->head.no_records)++; rec->sysno = sysno; for (i = 0; i < REC_NO_INFO; i++)