Don't bother passing -1 as the length to the CFX_ByteString ctor.
[pdfium.git] / core / src / fpdfapi / fpdf_font / fpdf_font_charset.cpp
index 308dac9..92d1719 100644 (file)
@@ -1778,5 +1778,5 @@ FX_WCHAR PDF_UnicodeFromAdobeName(const FX_CHAR* name) {
 CFX_ByteString PDF_AdobeNameFromUnicode(FX_WCHAR unicode) {
   char glyph_name[64];
   FXFT_adobe_name_from_unicode(glyph_name, unicode);
-  return CFX_ByteString(glyph_name, -1);
+  return CFX_ByteString(glyph_name);
 }