Skip to content

Commit 527f969

Browse files
committed
fix range
1 parent 314b069 commit 527f969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zip/zip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ def get_e_o_c_d(io) #:nodoc:
13051305

13061306
sigIndex = buf.rindex([END_OF_CENTRAL_DIRECTORY_SIGNATURE].pack('V'))
13071307
raise ZipError, "Zip end of central directory signature not found" unless sigIndex
1308-
buf=buf.slice!((sigIndex+4)..(buf.size))
1308+
buf=buf.slice!((sigIndex+4)...(buf.size))
13091309
def buf.read(count)
13101310
slice!(0, count)
13111311
end

0 commit comments

Comments
 (0)