fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -968,7 +968,7 @@ wxString::wxString(const char *psz, wxMBConv& conv, size_t nLength)
|
|||||||
wxCharBuffer inBuf((const char *)NULL);
|
wxCharBuffer inBuf((const char *)NULL);
|
||||||
if (nLength != npos)
|
if (nLength != npos)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( psz != NULL );
|
wxASSERT( psz != NULL );
|
||||||
wxCharBuffer tmp(nLength);
|
wxCharBuffer tmp(nLength);
|
||||||
memcpy(tmp.data(), psz, nLength);
|
memcpy(tmp.data(), psz, nLength);
|
||||||
tmp.data()[nLength] = '\0';
|
tmp.data()[nLength] = '\0';
|
||||||
@@ -1026,7 +1026,7 @@ wxString::wxString(const wchar_t *pwz, wxMBConv& conv, size_t nLength)
|
|||||||
wxWCharBuffer inBuf((const wchar_t *)NULL);
|
wxWCharBuffer inBuf((const wchar_t *)NULL);
|
||||||
if (nLength != npos)
|
if (nLength != npos)
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( pwz != NULL );
|
wxASSERT( pwz != NULL );
|
||||||
wxWCharBuffer tmp(nLength);
|
wxWCharBuffer tmp(nLength);
|
||||||
memcpy(tmp.data(), pwz, nLength * sizeof(wchar_t));
|
memcpy(tmp.data(), pwz, nLength * sizeof(wchar_t));
|
||||||
tmp.data()[nLength] = '\0';
|
tmp.data()[nLength] = '\0';
|
||||||
|
Reference in New Issue
Block a user