diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-02 01:13:38 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-02 01:13:38 +0200 |
| commit | 359002f664ca022e5df93bdb6fe2066082e2dc8d (patch) | |
| tree | 7b59abea0ec8f98e29deba63809662a17d093dc6 /src/cc4group.c | |
| parent | 137a719fdd775374a16eb7f43f4cae2e68626b8a (diff) | |
| download | cc4group-359002f664ca022e5df93bdb6fe2066082e2dc8d.tar.gz cc4group-359002f664ca022e5df93bdb6fe2066082e2dc8d.zip | |
Fix bug in lazy mode
Diffstat (limited to 'src/cc4group.c')
| -rw-r--r-- | src/cc4group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c index f07cdeb..64c72c2 100644 --- a/src/cc4group.c +++ b/src/cc4group.c @@ -328,7 +328,7 @@ static bool buildChildren(CC4Group* const this, C4GroupEntryData* const entry, s C4GroupEntryData* childEntry = &GroupEntryListAppend(entry->children, (C4GroupEntryData){.core = *core, .data = childData + core->Offset, .memoryManagement = cc4group.MemoryManagement.Reference, .children = NULL, .parent = entry, .absolutePosition = entry->absolutePosition + childDataOffset + core->Offset, .path = NULL})->value; - if(this->readState.position < childEntry->absolutePosition) + if(this->readState.position < childEntry->absolutePosition + core->Size) { childEntry->data = NULL; } |
