summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_decimal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/cfx_decimal.cpp')
-rw-r--r--core/fxcrt/cfx_decimal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/cfx_decimal.cpp b/core/fxcrt/cfx_decimal.cpp
index a463305f6a..b900e069a7 100644
--- a/core/fxcrt/cfx_decimal.cpp
+++ b/core/fxcrt/cfx_decimal.cpp
@@ -295,7 +295,7 @@ CFX_Decimal::CFX_Decimal(float val, uint8_t scale) {
}
CFX_Decimal::CFX_Decimal(const CFX_WideStringC& strObj) {
- const wchar_t* str = strObj.c_str();
+ const wchar_t* str = strObj.unterminated_c_str();
const wchar_t* strBound = str + strObj.GetLength();
bool pointmet = false;
bool negmet = false;