From c295f6fa6c7a89d1c2e11f9612a580431b61564a Mon Sep 17 00:00:00 2001 From: "Alexander S.Kresin" Date: Fri, 23 Feb 2001 19:17:48 +0000 Subject: [PATCH] 2001-02-23 21:40 GMT+3 Alexander Kresin --- harbour/ChangeLog | 4 ++++ harbour/source/rdd/dbfntx/dbfntx1.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index fa42ec1866..0a3b0a510c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-02-23 21:40 GMT+3 Alexander Kresin + * harbour/source/rdd/dbfntx/dbfntx1.c + * bug fixed, reported by Maurilio Longo + 2001-02-23 21:40 GMT+3 Alexander Kresin * harbour/source/rdd/dbfntx/dbfntx1.c * building of indexes optimized diff --git a/harbour/source/rdd/dbfntx/dbfntx1.c b/harbour/source/rdd/dbfntx/dbfntx1.c index 5df6394942..7edb70539f 100644 --- a/harbour/source/rdd/dbfntx/dbfntx1.c +++ b/harbour/source/rdd/dbfntx/dbfntx1.c @@ -766,6 +766,10 @@ static void hb_ntxPageSave( LPPAGEINFO pPage ) i * ( pPage->TagParent->KeyLength + 8 ); item=(NTXITEM *)(buffer+itemlist->item_offset[i]); item->page = pKey[i].Tag; + i++; + for( ; i < pPage->TagParent->MaxKeys + 1; i++ ) + itemlist->item_offset[i] = 2 + 2 * ( pPage->TagParent->MaxKeys + 1 ) + + i * ( pPage->TagParent->KeyLength + 8 ); hb_fsSeek( pPage->TagParent->Owner->DiskFile, pPage->Page, FS_SET ); hb_fsWrite( pPage->TagParent->Owner->DiskFile, (BYTE *) buffer, NTXBLOCKSIZE ); pPage->Changed = FALSE;