Index: pdf/pdfium/pdfium_engine.cc |
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc |
index 42f69e7bf2a9bb30154015f0bd2269ff6f0a908b..7b0726ac0bd2831884302e51284bc27d01b46489 100644 |
--- a/pdf/pdfium/pdfium_engine.cc |
+++ b/pdf/pdfium/pdfium_engine.cc |
@@ -3400,8 +3400,8 @@ bool PDFiumEngineExports::RenderPDFPageToDC(const void* pdf_buffer, |
base::string16 creator; |
size_t buffer_bytes = FPDF_GetMetaText(doc, "Creator", NULL, 0); |
if (buffer_bytes > 1) { |
- FPDF_GetMetaText(doc, "Creator", WriteInto(&creator, buffer_bytes), |
- buffer_bytes); |
+ FPDF_GetMetaText( |
+ doc, "Creator", WriteInto(&creator, buffer_bytes + 1), buffer_bytes); |
} |
bool use_bitmap = false; |
if (StartsWith(creator, L"cairo", false)) |