X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=blobdiff_plain;f=flatdb.c;h=d63374474621d7f66ebf98455756380d9ea60124;hb=55caa79866d7f5330e62f344ab36f9cc131e1b74;hp=a570417a9165263b843d917ebf60c5affa1154e7;hpb=6220afb6924192f9115842e47bff3e8370d09df3;p=tedtools.git 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);