diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/font/fpdf_font_cid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/font/fpdf_font_cid.cpp b/core/fpdfapi/font/fpdf_font_cid.cpp index e45154600b..dd37551b2d 100644 --- a/core/fpdfapi/font/fpdf_font_cid.cpp +++ b/core/fpdfapi/font/fpdf_font_cid.cpp @@ -687,7 +687,7 @@ int CPDF_CMap::AppendChar(char* str, uint32_t charcode) const { iSize = 1; str[iSize - 1] = (uint8_t)charcode; if (iSize > 1) - memset(str + 1, 0, iSize - 1); + memset(str, 0, iSize - 1); return iSize; } if (charcode < 0x10000) { |