summaryrefslogtreecommitdiff
path: root/core/src/fxcrt/fx_basic_wstring.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-14 16:02:19 -0800
committerLei Zhang <thestig@chromium.org>2015-12-14 16:02:19 -0800
commita65eca4a589f8381c5486899682d8404551a2c7a (patch)
treea9031fd675912bcd4f2944f04b3b83a17bb400b8 /core/src/fxcrt/fx_basic_wstring.cpp
parent1956a174020686f91cd3b34294e91f4560fe45aa (diff)
downloadpdfium-a65eca4a589f8381c5486899682d8404551a2c7a.tar.xz
Fix failures after removing FX_BSTRC.
TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1528743002 .
Diffstat (limited to 'core/src/fxcrt/fx_basic_wstring.cpp')
-rw-r--r--core/src/fxcrt/fx_basic_wstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fxcrt/fx_basic_wstring.cpp b/core/src/fxcrt/fx_basic_wstring.cpp
index 2e92370461..78746e383c 100644
--- a/core/src/fxcrt/fx_basic_wstring.cpp
+++ b/core/src/fxcrt/fx_basic_wstring.cpp
@@ -288,7 +288,7 @@ CFX_ByteString CFX_WideString::UTF8Encode() const {
}
CFX_ByteString CFX_WideString::UTF16LE_Encode() const {
if (m_pData == NULL) {
- return CFX_ByteString("\0\0");
+ return CFX_ByteString("\0\0", 2);
}
int len = m_pData->m_nDataLength;
CFX_ByteString result;