From a973ffb4484fbf1589f47cb01a117042b07eae78 Mon Sep 17 00:00:00 2001 From: "Alexander S.Kresin" Date: Fri, 30 Mar 2001 10:07:28 +0000 Subject: [PATCH] 2001-03-30 14:10 GMT+3 Alexander Kresin --- harbour/ChangeLog | 5 +++++ harbour/source/rdd/dbfntx/dbfntx1.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e89586911d..5c305e5888 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +2001-03-30 14:10 GMT+3 Alexander Kresin + * source/rdd/dbfntx/dbfntx1.c + ! fixed the bug, reported by John M. S. Chiang, which appeared while + indexing files with a big record length + 2001-03-30 13:10 GMT+3 Alexander Kresin * source/rdd/dbfntx/dbfntx1.c * include/hbrddntx.h diff --git a/harbour/source/rdd/dbfntx/dbfntx1.c b/harbour/source/rdd/dbfntx/dbfntx1.c index 0d93a8af36..24944a8c6b 100644 --- a/harbour/source/rdd/dbfntx/dbfntx1.c +++ b/harbour/source/rdd/dbfntx/dbfntx1.c @@ -1552,7 +1552,8 @@ static void hb_ntxReadBuf( NTXAREAP pArea, BYTE* readBuffer, USHORT* numRecinBuf if( *numRecinBuf == 10 ) *numRecinBuf = 0; if( *numRecinBuf == 0 ) - hb_fsRead( pArea->hDataFile, readBuffer, pArea->uiRecordLen * 10 ); + hb_fsReadLarge( pArea->hDataFile, readBuffer, pArea->uiRecordLen * 10 ); + pArea->pRecord = readBuffer + (*numRecinBuf) * pArea->uiRecordLen; (*numRecinBuf) ++; }