Index: base/trace_event/trace_event_android.cc |
diff --git a/base/trace_event/trace_event_android.cc b/base/trace_event/trace_event_android.cc |
index 4e578a5595116d128851d364275de7b31f19a8e0..01ca8e4d55c7975fb5284e364fc3a6020c21f832 100644 |
--- a/base/trace_event/trace_event_android.cc |
+++ b/base/trace_event/trace_event_android.cc |
@@ -25,7 +25,7 @@ void WriteToATrace(int fd, const char* buffer, size_t size) { |
size_t total_written = 0; |
while (total_written < size) { |
ssize_t written = HANDLE_EINTR(write( |
- fd, buffer + size, size - total_written)); |
+ fd, buffer + total_written, size - total_written)); |
if (written <= 0) |
break; |
total_written += written; |