Fix strcpy on overlapped region