diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-03 14:50:05 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-03 19:15:09 +0000 |
commit | 7e7c649237b9d537226e3026aa9b5831862eee5b (patch) | |
tree | a905847ec19b45c45e54e50ae527d2acbefa7f97 /core/fpdfapi/parser/cpdf_document.cpp | |
parent | 044a70da2aeaa5f4c73abfb75e81f79edd9014b8 (diff) | |
download | pdfium-7e7c649237b9d537226e3026aa9b5831862eee5b.tar.xz |
Drop FXSYS_ from string methods
This Cl drops the FXSYS_ from string methods which are the same on
all platforms.
Bug: pdfium:694
Change-Id: I1698aafd84f40474997549ae91ce35603377e303
Reviewed-on: https://pdfium-review.googlesource.com/3597
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp index fb2c723ce4..975592d044 100644 --- a/core/fpdfapi/parser/cpdf_document.cpp +++ b/core/fpdfapi/parser/cpdf_document.cpp @@ -966,7 +966,8 @@ CPDF_Font* CPDF_Document::AddWindowsFont(LOGFONTW* pLogFont, if (face.GetLength() >= LF_FACESIZE) return nullptr; - FXSYS_strcpy(lfa.lfFaceName, face.c_str()); + strncpy(lfa.lfFaceName, face.c_str(), + (face.GetLength() + 1) * sizeof(CFX_ByteString::CharType)); return AddWindowsFont(&lfa, bVert, bTranslateName); } |