From 55caa79866d7f5330e62f344ab36f9cc131e1b74 Mon Sep 17 00:00:00 2001 From: teodor Date: Mon, 4 Oct 2004 18:04:33 +0000 Subject: [PATCH] fix FDBPut offset --- flatdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flatdb.c b/flatdb.c index a570417..d633744 100644 --- a/flatdb.c +++ b/flatdb.c @@ -274,6 +274,7 @@ FDBPut(FDB *db, FDBRecord *record, off_t *offset ) { ptr = findFreeSpace( db, record->length ); if ( ptr ) { *offset = ptr->offset; + ptr->offset += record->length; ptr->length -= record->length; if ( ptr->length == 0 ) FDBVacuumFreeSpace(db); -- 2.46.1