Merge pull request #3045 from bmorg/master

core: read box file in binary mode for checksum
This commit is contained in:
Mitchell Hashimoto 2014-03-02 07:14:06 +01:00
commit 19c71c1d9c
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class FileChecksum
def checksum
digest = @digest_klass.new
File.open(@path, "r") do |f|
File.open(@path, "rb") do |f|
while !f.eof
begin
buf = f.readpartial(BUFFER_SIZE)