From: teodor Date: Mon, 4 Oct 2004 18:04:33 +0000 (+0000) Subject: fix FDBPut offset X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=55caa79866d7f5330e62f344ab36f9cc131e1b74;p=tedtools.git fix FDBPut offset --- 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);