projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6220afb
)
fix FDBPut offset
author
teodor
<teodor>
Mon, 4 Oct 2004 18:04:33 +0000
(18:04 +0000)
committer
teodor
<teodor>
Mon, 4 Oct 2004 18:04:33 +0000
(18:04 +0000)
flatdb.c
patch
|
blob
|
history
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);