projects
/
tedtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix FDBPut offset
[tedtools.git]
/
flatdb.c
diff --git
a/flatdb.c
b/flatdb.c
index
a570417
..
d633744
100644
(file)
--- 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);