From 5011a0dede78e2754209e4e1b3b98f6a15b88291 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Tue, 9 Oct 2012 23:05:59 +0000 Subject: [PATCH] - Fixed: FString::Insert copied too many charactes. SVN r3882 (trunk) --- src/zstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zstring.cpp b/src/zstring.cpp index 7cc594b14d..dc171f3988 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, old->Chars() + index, mylen - index + 1); + StrCopy (Chars + index + instrlen, old->Chars() + index, mylen - index); old->Release(); } }