From 0698c856aaa3e54574f306c35397d6b792a95a3e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 13 Jun 2017 16:55:20 -0700 Subject: 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 Reviewed-by: dsinclair --- xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/fm2js') 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 { -- cgit v1.2.3