From: Adam Dickmeiss Date: Wed, 17 Apr 2002 08:48:54 +0000 (+0000) Subject: isamb: resize fix X-Git-Tag: ZEBRA.1.3.0~85 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=3588e611b9f188ef8feafd3b71d53de3eca2fcaf;p=idzebra-moved-to-github.git isamb: resize fix --- diff --git a/isamb/isamb.c b/isamb/isamb.c index 706d0df..9c5e313 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-1998, Index Data. * See the file LICENSE for details. * - * $Id: isamb.c,v 1.4 2002-04-17 08:17:13 adam Exp $ + * $Id: isamb.c,v 1.5 2002-04-17 08:48:54 adam Exp $ */ #include #include @@ -436,7 +436,7 @@ int insert_flat (ISAMB b, const void *new_item, ISAMC_P *posp) p->dirty = 1; } new_size = dst - dst_buf + ISAMB_DATA_OFFSET; - if (p && new_size > p->size) + if (p && new_size > b->file[p->cat].head.block_size) { yaz_log (LOG_LOG, "resize %d -> %d", p->size, new_size); close_block (b, p);