- Fixed: FString::Insert copied too many charactes.

SVN r3882 (trunk)
This commit is contained in:
Braden Obrzut 2012-10-09 23:05:59 +00:00
parent 934c27d34a
commit 5011a0dede

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, old->Chars() + index, mylen - index + 1);
StrCopy (Chars + index + instrlen, old->Chars() + index, mylen - index);
old->Release();
}
}