Skip to content

Commit b1a2f1f

Browse files
mlauss2icculus
authored andcommitted
lec3d: fix bug in LFD content generator
The LFD archiver included the 16-byte file metadata into the file. Fix this.
1 parent 1990660 commit b1a2f1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/physfs_archiver_lec3d.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,10 @@ static int lfdLoadEntries(PHYSFS_Io *io, const PHYSFS_uint32 skip, void *arc)
186186
finalname[i] = '.';
187187
strcpy(finalname + i + 1, ext);
188188

189+
pos += 16; /* step over file meta info */
189190
BAIL_IF_ERRPASS(!UNPK_addEntry(arc, finalname, 0, -1, -1, pos, dlen), 0);
190191

191-
pos += 16 + dlen; /* name+size entry + actual size */
192+
pos += dlen; /* step over file contents */
192193
}
193194

194195
return 1;

0 commit comments

Comments
 (0)