Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
unpacked: Don't list a position or length for directory entries.
  • Loading branch information
icculus committed Jul 21, 2017
1 parent d3ac612 commit 2dd3d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/archiver_unpacked.c
Expand Up @@ -264,8 +264,8 @@ void *UNPK_addEntry(void *opaque, char *name, const int isdir,
entry = (UNPKentry *) __PHYSFS_DirTreeAdd(&info->tree, name, isdir);
BAIL_IF_ERRPASS(!entry, NULL);

entry->startPos = pos;
entry->size = len;
entry->startPos = isdir ? 0 : pos;
entry->size = isdir ? 0 : len;

return entry;
} /* UNPK_addEntry */
Expand Down

0 comments on commit 2dd3d7c

Please sign in to comment.