From 359002f664ca022e5df93bdb6fe2066082e2dc8d Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Thu, 2 Apr 2020 01:13:38 +0200 Subject: Fix bug in lazy mode --- src/cc4group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-54-g00ecf