[PDF] Fix font metric array initialization.
Review URL: https://codereview.appspot.com/5885055
git-svn-id: http://skia.googlecode.com/svn/trunk@3475 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp
index 3ec4877..f53e617 100644
--- a/src/pdf/SkPDFDocument.cpp
+++ b/src/pdf/SkPDFDocument.cpp
@@ -225,8 +225,7 @@
void SkPDFDocument::getCountOfFontTypes(
int counts[SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1]) const {
- memset(counts, 0,
- sizeof(int)* SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1);
+ sk_bzero(counts, sizeof(counts));
SkTDArray<SkFontID> seenFonts;
for (int pageNumber = 0; pageNumber < fPages.count(); pageNumber++) {