Skip to content

Commit

Permalink
Fix misspell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0tonic committed Apr 26, 2024
1 parent 5c6a7c9 commit 9c080d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/zip/crypto/null_encryption.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def encrypt(data)
data
end

def data_descriptor(_crc32, _compressed_size, _uncomprssed_size)
def data_descriptor(_crc32, _compressed_size, _uncompressed_size)
''
end

Expand Down
4 changes: 2 additions & 2 deletions lib/zip/crypto/traditional_encryption.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def encrypt(data)
data.unpack('C*').map { |x| encode x }.pack('C*')
end

def data_descriptor(crc32, compressed_size, uncomprssed_size)
[0x08074b50, crc32, compressed_size, uncomprssed_size].pack('VVVV')
def data_descriptor(crc32, compressed_size, uncompressed_size)
[0x08074b50, crc32, compressed_size, uncompressed_size].pack('VVVV')
end

def reset!
Expand Down

0 comments on commit 9c080d7

Please sign in to comment.