diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-13 16:55:20 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-14 13:17:52 +0000 |
commit | 0698c856aaa3e54574f306c35397d6b792a95a3e (patch) | |
tree | 1407fda0d2974ccd17e73cc0bbe47b8594ee6094 /xfa | |
parent | 957480c17682008ae2a14723868fcdcab89b6577 (diff) | |
download | pdfium-0698c856aaa3e54574f306c35397d6b792a95a3e.tar.xz |
Fix bad format string in CXFA_FM2JSContext.
PDFium's vswprintf() is based on the win32 version to be consistent
across platforms. On Windows, %s has different meanings depending on
whether the printf() variant is wide or not.
BUG=chromium:732533
Change-Id: I7437ecd253da1234728c1e0897f02b7f907aada8
Reviewed-on: https://pdfium-review.googlesource.com/6550
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp b/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp index 3aab971229..0b8ea19ea5 100644 --- a/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp +++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp @@ -6148,7 +6148,7 @@ void CXFA_FM2JSContext::GlobalPropertyGetter(CFXJSE_Value* pValue) { void CXFA_FM2JSContext::ThrowNoDefaultPropertyException( const CFX_ByteStringC& name) const { - ThrowException(L"%.16s doesn't have a default property.", name.c_str()); + ThrowException(L"%.16S doesn't have a default property.", name.c_str()); } void CXFA_FM2JSContext::ThrowCompilerErrorException() const { |