X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6ed2b09a3e737e58f9ee7d0674be6c7ae1427c5..d181c36eb6366cb7da719c95eef50b281cedbbdc:/src/common/string.cpp?ds=sidebyside diff --git a/src/common/string.cpp b/src/common/string.cpp index 1a86ca3d1b..aa150ea4af 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -319,7 +319,7 @@ bool wxStringBase::AllocBeforeWrite(size_t nLen) // it doesn't really matter what the string length is as it's going to be // overwritten later but, for extra safety, set it to 0 for now as we may // have some junk in m_pchData - pData->nDataLength = 0; + GetStringData()->nDataLength = 0; return true; }