Index: core/fpdfapi/fpdf_font/cpdf_font.cpp |
diff --git a/core/fpdfapi/fpdf_font/cpdf_font.cpp b/core/fpdfapi/fpdf_font/cpdf_font.cpp |
index 7a6043ad8786ec6e9b3a0d29ff5ff32aca1c397d..3dfadeda9e0a74189b2e8f3a38548451259e1887 100644 |
--- a/core/fpdfapi/fpdf_font/cpdf_font.cpp |
+++ b/core/fpdfapi/fpdf_font/cpdf_font.cpp |
@@ -485,7 +485,7 @@ const FX_CHAR* CPDF_Font::GetAdobeCharName(int iBaseEncoding, |
const FX_CHAR* name = nullptr; |
if (pCharNames) |
- name = pCharNames[charcode]; |
+ name = pCharNames[charcode].c_str(); |
if ((!name || name[0] == 0) && iBaseEncoding) |
name = PDF_CharNameFromPredefinedCharSet(iBaseEncoding, charcode); |
return name && name[0] ? name : nullptr; |