Index: core/fpdfapi/fpdf_font/cpdf_type3font.cpp |
diff --git a/core/fpdfapi/fpdf_font/cpdf_type3font.cpp b/core/fpdfapi/fpdf_font/cpdf_type3font.cpp |
index 92f5102cdbc73c0b3444b54ac4224bb52c2112cb..40fb54fbc7237c7ed5069fa5f1ad5f91ce2f0bf1 100644 |
--- a/core/fpdfapi/fpdf_font/cpdf_type3font.cpp |
+++ b/core/fpdfapi/fpdf_font/cpdf_type3font.cpp |
@@ -73,7 +73,8 @@ FX_BOOL CPDF_Type3Font::Load() { |
LoadPDFEncoding(pEncoding, m_BaseEncoding, m_pCharNames, FALSE, FALSE); |
if (m_pCharNames) { |
for (int i = 0; i < 256; i++) { |
- m_Encoding.m_Unicodes[i] = PDF_UnicodeFromAdobeName(m_pCharNames[i]); |
+ m_Encoding.m_Unicodes[i] = |
+ PDF_UnicodeFromAdobeName(m_pCharNames[i].c_str()); |
if (m_Encoding.m_Unicodes[i] == 0) { |
m_Encoding.m_Unicodes[i] = i; |
} |