Use memmove instead of memcpy in string::assign.

It is possible to assign a string part of its own buffer:
std::string s; s.assign(s.data(), s.size());
This can not be done with memcpy.

Upstream bug:
https://sourceforge.net/tracker/?func=detail&aid=3323109&group_id=146814&atid=766244

Change-Id: I611b1c08664c9eacb7ded6821ef2ef555a3288a8
1 file changed