diff --git a/docs/changes.txt b/docs/changes.txt index e886f895b2..951e0af088 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -523,6 +523,7 @@ All: - Fix deadlock due to too many events in Unix console apps (Lukasz Michalski). - Added wxDir::GetNameWithSep(). - Allow unloading wxPluginLibrary objects in any order (manyleaves). +- Fix passing strings with embedded NULs in wxThreadEvents (sodev). All (GUI): diff --git a/include/wx/event.h b/include/wx/event.h index 8303647c39..283a0f56cd 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1244,7 +1244,7 @@ public: { // make sure our string member (which uses COW, aka refcounting) is not // shared by other wxString instances: - SetString(GetString().c_str()); + SetString(GetString().Clone()); } virtual wxEvent *Clone() const