Index: src/images/SkImageRef.cpp |
diff --git a/src/images/SkImageRef.cpp b/src/images/SkImageRef.cpp |
index ead835f7ab9c9c4c16f6a5e810026855973554f6..1a8284bdd4a6e730da950ce244355867295cb0de 100644 |
--- a/src/images/SkImageRef.cpp |
+++ b/src/images/SkImageRef.cpp |
@@ -176,7 +176,7 @@ SkImageRef::SkImageRef(SkFlattenableReadBuffer& buffer, SkBaseMutex* mutex) |
size_t length = buffer.getArrayCount(); |
fStream = SkNEW_ARGS(SkMemoryStream, (length)); |
- buffer.readByteArray((void*)fStream->getMemoryBase()); |
+ buffer.readByteArray((void*)fStream->getMemoryBase(), length); |
fPrev = fNext = NULL; |
fFactory = NULL; |