Index: sdk/lib/io/file_impl.dart |
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
index 83952b17ee5a6e747c0fe877ca6cc8fa171cb272..87f3204146923004fad04b666f80e7073b8a14b2 100644 |
--- a/sdk/lib/io/file_impl.dart |
+++ b/sdk/lib/io/file_impl.dart |
@@ -736,7 +736,7 @@ class _RandomAccessFile extends _FileBase implements RandomAccessFile { |
} |
var read = response[1]; |
var data = response[2]; |
- buffer.setRange(offset, read, data); |
+ buffer.setRange(offset, offset + read, data); |
return read; |
}); |
} |