Index: xfa/src/fgas/src/crt/fx_system.cpp |
diff --git a/xfa/src/fgas/src/crt/fx_system.cpp b/xfa/src/fgas/src/crt/fx_system.cpp |
index b08236bb1db3efb8baf67ce5fb781181a198a37d..b11fcd271ee41d780bc593b3ded8147c5d1a22de 100644 |
--- a/xfa/src/fgas/src/crt/fx_system.cpp |
+++ b/xfa/src/fgas/src/crt/fx_system.cpp |
@@ -86,8 +86,8 @@ FX_FLOAT FX_strtof(const FX_CHAR* pcsStr, int32_t iLength, int32_t* pUsedLen) { |
if (iLength < 0) { |
iLength = FXSYS_strlen(pcsStr); |
} |
- return FX_wcstof(CFX_WideString::FromLocal(pcsStr, iLength), iLength, |
- pUsedLen); |
+ return FX_wcstof(CFX_WideString::FromLocal(CFX_ByteString(pcsStr, iLength)), |
+ iLength, pUsedLen); |
} |
FX_FLOAT FX_wcstof(const FX_WCHAR* pwsStr, int32_t iLength, int32_t* pUsedLen) { |
FXSYS_assert(pwsStr != NULL); |