| Index: core/fxcrt/fx_basic_bstring.cpp
|
| diff --git a/core/fxcrt/fx_basic_bstring.cpp b/core/fxcrt/fx_basic_bstring.cpp
|
| index bfa0cbd98cea2c928f382ecb3ce06e5ae324d8ba..1622c4bc55c2363bbcc84aa066c67844ad52f761 100644
|
| --- a/core/fxcrt/fx_basic_bstring.cpp
|
| +++ b/core/fxcrt/fx_basic_bstring.cpp
|
| @@ -75,6 +75,9 @@ const FX_CHAR* FX_strstr(const FX_CHAR* haystack,
|
|
|
| } // namespace
|
|
|
| +static_assert(sizeof(CFX_ByteString) <= sizeof(FX_CHAR*),
|
| + "Strings must not require more space than pointers");
|
| +
|
| CFX_ByteString::CFX_ByteString(const FX_CHAR* pStr, FX_STRSIZE nLen) {
|
| if (nLen < 0)
|
| nLen = pStr ? FXSYS_strlen(pStr) : 0;
|
|
|