Skip to content

Commit da11eb7

Browse files
committed
Fix bug where zip archives wrongly have a first disk number set to 1
1 parent 628d51f commit da11eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stdlib/src/zip.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ cd_file_header_from_lh_and_pos(LH, Pos) ->
10171017
file_name_length = FileNameLength,
10181018
extra_field_length = ExtraFieldLength,
10191019
file_comment_length = 0, % FileCommentLength,
1020-
disk_num_start = 1, % DiskNumStart,
1020+
disk_num_start = 0, % DiskNumStart,
10211021
internal_attr = 0, % InternalAttr,
10221022
external_attr = 0, % ExternalAttr,
10231023
local_header_offset = Pos}.

0 commit comments

Comments
 (0)