Use memmove() instead of memcpy() in wxString::AssignCopy().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Dec 2011 13:51:13 +0000 (13:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 28 Dec 2011 13:51:13 +0000 (13:51 +0000)
commitc2cd367f7dc5ce7e6a25d2ab778b4fe6e210e312
treec2a3d03317867fa33d89cecb8a343b9f59efe432
parentd296f9a114b05051dd822d52305d4fa763ea7da3
Use memmove() instead of memcpy() in wxString::AssignCopy().

This at least allows the code like "s = s.c_str()" to work correctly when
using our own wxString implementation, even it doesn't fix all
self-assignment-related bugs (again, when using our own implementation only,
there is no bug when using std::basic_string as underlying implementation).

This is a cherry pick of r63008 from 2.8 branch.

See #11245.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/stringimpl.cpp