- Fixed: FString would truncate a string if Insert was called on a string which has a reference count greater than 1.

SVN r3809 (trunk)
This commit is contained in:
Braden Obrzut 2012-08-06 10:28:55 +00:00
parent 70d8daa341
commit 1b05969d44

View file

@ -773,7 +773,7 @@ void FString::Insert (size_t index, const char *instr, size_t instrlen)
AllocBuffer (mylen + instrlen);
StrCopy (Chars, old->Chars(), index);
StrCopy (Chars + index, instr, instrlen);
StrCopy (Chars + index + instrlen, Chars + index, mylen - index + 1);
StrCopy (Chars + index + instrlen, old->Chars() + index, mylen - index + 1);
old->Release();
}
}