Commit c5f30fd1 authored by Barry Warsaw's avatar Barry Warsaw

dofile(): Add the length of the data read from the file to the

bytesread accumulator, not the chunklen which is the number of bytes
we wanted to read.
parent 9c325ef0
......@@ -197,7 +197,7 @@ def dofile(func, fp, n=None):
if not data:
break
func(data)
bytesread += chunklen
bytesread += len(data)
return bytesread
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment