summaryrefslogtreecommitdiffstats
path: root/mojo/system/message_pipe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/system/message_pipe.cc')
-rw-r--r--mojo/system/message_pipe.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/mojo/system/message_pipe.cc b/mojo/system/message_pipe.cc
index c84959c..8cd94cb 100644
--- a/mojo/system/message_pipe.cc
+++ b/mojo/system/message_pipe.cc
@@ -126,9 +126,9 @@ MojoResult MessagePipe::ReadMessage(unsigned port,
bool not_enough_space = false;
MessageInTransit* const message = message_queues_[port].front();
if (num_bytes)
- *num_bytes = message->size();
- if (message->size() <= max_bytes)
- memcpy(bytes, message->data(), message->size());
+ *num_bytes = message->data_size();
+ if (message->data_size() <= max_bytes)
+ memcpy(bytes, message->data(), message->data_size());
else
not_enough_space = true;