mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- 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:
parent
70d8daa341
commit
1b05969d44
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue