Index: src/core/SkFlattenableBuffers.cpp |
diff --git a/src/core/SkFlattenableBuffers.cpp b/src/core/SkFlattenableBuffers.cpp |
index dbf66da7ce88bcbe3bf4d3fa61609bd2684c567c..54d18d1c2f03eabcb137cfd289230f97b8c1ca17 100644 |
--- a/src/core/SkFlattenableBuffers.cpp |
+++ b/src/core/SkFlattenableBuffers.cpp |
@@ -37,7 +37,7 @@ SkFlattenableReadBuffer::~SkFlattenableReadBuffer() { } |
void* SkFlattenableReadBuffer::readFunctionPtr() { |
void* proc; |
SkASSERT(sizeof(void*) == this->getArrayCount()); |
- this->readByteArray(&proc); |
+ this->readByteArray(&proc, sizeof(void*)); |
Tom Sepez
2013/11/08 20:59:01
drive-by: Code like this always scares the crap ou
sugoi
2013/11/08 21:31:16
Thanks for your comment ! Yes, code like this was
|
return proc; |
} |