Index: ppapi/proxy/ppapi_param_traits.cc |
diff --git a/ppapi/proxy/ppapi_param_traits.cc b/ppapi/proxy/ppapi_param_traits.cc |
index 1623395924e5ef057403dbeb4415b08b013dc595..94ec2e69bfc2007c3cc5d589f413e9d62135c785 100644 |
--- a/ppapi/proxy/ppapi_param_traits.cc |
+++ b/ppapi/proxy/ppapi_param_traits.cc |
@@ -43,7 +43,7 @@ bool ReadVectorWithoutCopy(const Message* m, |
// This part is just a copy of the the default ParamTraits vector Read(). |
int size; |
// ReadLength() checks for < 0 itself. |
- if (!m->ReadLength(iter, &size)) |
+ if (!iter->ReadLength(&size)) |
return false; |
// Resizing beforehand is not safe, see BUG 1006367 for details. |
if (INT_MAX / sizeof(T) <= static_cast<size_t>(size)) |
@@ -118,7 +118,7 @@ bool ParamTraits<PP_NetAddress_Private>::Read(const Message* m, |
p->size = size; |
const char* data; |
- if (!m->ReadBytes(iter, &data, size)) |
+ if (!iter->ReadBytes(&data, size)) |
return false; |
memcpy(p->data, data, size); |
return true; |