[ApngInspector] Change length to bytesize (#708)

This commit is contained in:
Donovan Daniels 2024-08-04 17:14:26 -05:00 committed by GitHub
parent e436458d66
commit db02dfc582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ class ApngInspector
chunkheader = +""
while file.read(8, chunkheader)
#ensure that first 8 bytes from chunk were read properly
if chunkheader == nil || chunkheader.length < 8
if chunkheader == nil || chunkheader.bytesize < 8
return false
end