Skip to content

Commit

Permalink
Merge pull request #107 from MacPaw/fix/incorrect-comments-parsing-fo…
Browse files Browse the repository at this point in the history
…r-zip-files

Fix incorrect comments parsing
  • Loading branch information
PaulTaykalo committed Dec 11, 2019
2 parents 4030ab7 + cedda0d commit fcf3acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XADZipParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ -(void)parseWithCentralDirectoryAtOffset:(off_t)centraloffs zip64Offset:(off_t)z

// Parse comment data
NSData *commentdata=nil;
if(commentlength) commentdata=[fh readDataOfLength:commentlength];
if(cdr.commentlength) commentdata=[fh readDataOfLength:cdr.commentlength];

off_t next=[fh offsetInFile];

Expand Down

0 comments on commit fcf3acc

Please sign in to comment.