Index: minidump/minidump_file_writer.cc |
diff --git a/minidump/minidump_file_writer.cc b/minidump/minidump_file_writer.cc |
index 4ee1bd07003805d78e97aa93cc8ffa7169d0920a..8e67db061232d26d36b7a8e1b895c33818088b05 100644 |
--- a/minidump/minidump_file_writer.cc |
+++ b/minidump/minidump_file_writer.cc |
@@ -150,8 +150,8 @@ bool MinidumpFileWriter::WriteObject(FileWriterInterface* file_writer) { |
std::vector<WritableIoVec> iovecs(1, iov); |
for (internal::MinidumpStreamWriter* stream : streams_) { |
- iov.iov_len = sizeof(MINIDUMP_DIRECTORY); |
iov.iov_base = stream->DirectoryListEntry(); |
+ iov.iov_len = sizeof(MINIDUMP_DIRECTORY); |
iovecs.push_back(iov); |
} |