mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- Fixed: FString::Insert copied too many charactes.
SVN r3882 (trunk)
This commit is contained in:
parent
934c27d34a
commit
5011a0dede
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);
|
AllocBuffer (mylen + instrlen);
|
||||||
StrCopy (Chars, old->Chars(), index);
|
StrCopy (Chars, old->Chars(), index);
|
||||||
StrCopy (Chars + index, instr, instrlen);
|
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();
|
old->Release();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue