Index: runtime/bin/file.cc |
diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc |
index ee3255a0213ec7cf92463837420f813a0626e977..1abd906d31322cd29fd30c60862fd48de34e2443 100644 |
--- a/runtime/bin/file.cc |
+++ b/runtime/bin/file.cc |
@@ -256,7 +256,8 @@ void FUNCTION_NAME(File_WriteFrom)(Dart_NativeArguments args) { |
ASSERT(buffer != NULL); |
// Write all the data out into the file. |
- bool success = file->WriteFully(buffer, length); |
+ char* byte_buffer = reinterpret_cast<char*>(buffer); |
+ bool success = file->WriteFully(byte_buffer + start, length); |
// Release the direct pointer acquired above. |
result = Dart_TypedDataReleaseData(buffer_obj); |