about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-28 22:01:14 +0200
committeroy <Tom_Adams@web.de>2011-07-28 22:01:14 +0200
commit65d312fd06ef7730cb6699923e17d8b05bd764d0 (patch)
treecd5c0c8b7e5cbd854c98fef71f4cdcce45270e87
parentf5fff81abb6766dc583701f3673b9ebece28856d (diff)
downloadzcatch-65d312fd06ef7730cb6699923e17d8b05bd764d0.tar.gz
zcatch-65d312fd06ef7730cb6699923e17d8b05bd764d0.zip
fixed problem with lineinput. Closes #802
-rw-r--r--src/game/client/lineinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/lineinput.cpp b/src/game/client/lineinput.cpp
index 29b891c2..2de85d66 100644
--- a/src/game/client/lineinput.cpp
+++ b/src/game/client/lineinput.cpp
@@ -42,7 +42,7 @@ bool CLineInput::Manipulate(IInput::CEvent e, char *pStr, int StrMaxSize, int *p
 
 		if (Len < StrMaxSize - CharSize && CursorPos < StrMaxSize - CharSize)
 		{
-			mem_move(pStr + CursorPos + CharSize, pStr + CursorPos, Len - CursorPos + CharSize);
+			mem_move(pStr + CursorPos + CharSize, pStr + CursorPos, Len-CursorPos+1); // +1 == null term
 			for(int i = 0; i < CharSize; i++)
 				pStr[CursorPos+i] = Tmp[i];
 			CursorPos += CharSize;