From 3588e611b9f188ef8feafd3b71d53de3eca2fcaf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 17 Apr 2002 08:48:54 +0000 Subject: [PATCH] isamb: resize fix --- isamb/isamb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.10.4