X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5be07d450c6daccf4dbaa9030493df7c0149111..c127177f8dc31dbe99764852b8dbcc047d3ad826:/src/gtk/dataobj.cpp diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index 246e603722..cbcce96e5f 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/dataobj.cpp @@ -341,7 +341,7 @@ size_t wxTextDataObject::GetSize() const void wxTextDataObject::WriteString( const wxString &str, void *dest ) const { - memcpy( dest, m_data.c_str(), GetSize() ); + memcpy( dest, str.mb_str(), str.Len()+1 ); } // ---------------------------------------------------------------------------- @@ -368,7 +368,7 @@ wxString wxFileDataObject::GetFiles() const void wxFileDataObject::WriteData( void *dest ) const { - memcpy( dest, m_files.c_str(), GetSize() ); + memcpy( dest, m_files.mbc_str(), GetSize() ); } size_t wxFileDataObject::GetSize() const