Index: src/ports/SkFontHost_FreeType.cpp |
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp |
index b08aa8e6fd81928abb24611e2cc123c79965ab46..6a36f4407aa3a90cceef3e46d289593cdbff2802 100644 |
--- a/src/ports/SkFontHost_FreeType.cpp |
+++ b/src/ports/SkFontHost_FreeType.cpp |
@@ -1333,7 +1333,7 @@ bool find_name_and_attributes(SkStream* stream, SkString* name, |
args.memory_size = stream->getLength(); |
} else { |
memset(&streamRec, 0, sizeof(streamRec)); |
- streamRec.size = stream->read(NULL, 0); |
+ streamRec.size = stream->getLength(); |
streamRec.descriptor.pointer = stream; |
streamRec.read = sk_stream_read; |
streamRec.close = sk_stream_close; |