Skip to content

Commit fb84ba8

Browse files
author
Jon Daniel
committed
skip header for pos
1 parent 30b749f commit fb84ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/physfs_archiver_tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static bool TAR_loadEntries(PHYSFS_Io *io, void *arc)
107107
count++;
108108
}
109109
size = TAR_fileSize(&current_block);
110-
pos = count * BLOCKSIZE;
110+
pos = (count + 1) * BLOCKSIZE;
111111
pad = (BLOCKSIZE - (size % BLOCKSIZE)) % BLOCKSIZE;
112112
buf = allocator->Malloc(size + pad);
113113
/* add entry to arc */

0 commit comments

Comments
 (0)