Index: src/ports/SkXMLPullParser_expat.cpp |
diff --git a/src/ports/SkXMLPullParser_expat.cpp b/src/ports/SkXMLPullParser_expat.cpp |
index 1d1615bcdcc78e414b40dc40a27d7717e247d0be..44a3c7f81eae0f75d3507660b2c348613df49e81 100644 |
--- a/src/ports/SkXMLPullParser_expat.cpp |
+++ b/src/ports/SkXMLPullParser_expat.cpp |
@@ -152,7 +152,7 @@ bool SkXMLPullParser::onInit() |
XML_SetCharacterDataHandler(p, text_proc); |
XML_SetUserData(p, &fImpl->fData); |
- size_t len = fStream->read(NULL, 0); |
+ size_t len = fStream->getLength(); |
fImpl->fBufferLen = len; |
fImpl->fBuffer = sk_malloc_throw(len); |
fStream->rewind(); |