diff --git a/src/zstring.cpp b/src/zstring.cpp index d126d607b..7cc594b14 100644 --- a/src/zstring.cpp +++ b/src/zstring.cpp @@ -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(); } }