X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/229f00eb69472782a51a862b5f7e0ad059d906f7..538a2cfaf2be9f864e58c9a9fe232966af6bf2a0:/src/common/dobjcmn.cpp?ds=sidebyside diff --git a/src/common/dobjcmn.cpp b/src/common/dobjcmn.cpp index 0eeea52fb2..7925041420 100644 --- a/src/common/dobjcmn.cpp +++ b/src/common/dobjcmn.cpp @@ -425,8 +425,8 @@ bool wxTextDataObject::GetDataHere(void *buf) const // NOTE: use wxTmemcpy() instead of wxStrncpy() to allow // retrieval of strings with embedded NULLs wxTmemcpy(static_cast(buf), - textNative.c_str(), - (textNative.length() + 1)*sizeof(wxChar)); + textNative.t_str(), + textNative.length() + 1); return true; }