Index: core/fpdfdoc/doc_utils.cpp |
diff --git a/core/fpdfdoc/doc_utils.cpp b/core/fpdfdoc/doc_utils.cpp |
index 404353847fff6e220393f2a65739db5c874ee9e8..2df7d97e31d7e56ef0cd8d150193cd1e8c3e1ea5 100644 |
--- a/core/fpdfdoc/doc_utils.cpp |
+++ b/core/fpdfdoc/doc_utils.cpp |
@@ -603,8 +603,8 @@ void AddInterFormFont(CPDF_Dictionary*& pFormDict, |
csNameTag = pFont->GetBaseFont(); |
} |
csNameTag.Remove(' '); |
- csNameTag = |
- CPDF_InterForm::GenerateNewResourceName(pDR, "Font", 4, csNameTag); |
+ csNameTag = CPDF_InterForm::GenerateNewResourceName(pDR, "Font", 4, |
+ csNameTag.c_str()); |
pFonts->SetAtReference(csNameTag.AsStringC(), pDocument, |
pFont->GetFontDict()); |
} |