Index: runtime/bin/process_patch.dart |
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart |
index 64828f50dd68eb36d500db6ca4a635d57b22b291..ae87f4e0e4edceed464cb69bb14153c7be7c7ff2 100644 |
--- a/runtime/bin/process_patch.dart |
+++ b/runtime/bin/process_patch.dart |
@@ -199,7 +199,7 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process { |
_stdin._sink.destroy(); |
} |
- exitDataBuffer.setRange(exitDataRead, data.length, data); |
+ exitDataBuffer.setRange(exitDataRead, exitDataRead + data.length, data); |
exitDataRead += data.length; |
if (exitDataRead == EXIT_DATA_SIZE) { |
handleExit(); |