address feedback

unstable
xard4s 2013-05-22 13:44:25 -04:00
parent 930c9dc835
commit 314b0698ee
1 changed files with 2 additions and 2 deletions

View File

@ -1259,8 +1259,8 @@ module Zip
@cdirOffset = ZipEntry::read_zip_long(buf)
commentLength = ZipEntry::read_zip_short(buf)
@comment = buf.read(commentLength)
# remove trailing \n or \f or \r symbol
buf.gsub!(/\s/,'')
# remove trailing \n symbol
buf.chomp!
raise ZipError, "Zip consistency problem while reading eocd structure" unless buf.size == 0
end