diff options
| author | oy <Tom_Adams@web.de> | 2011-07-28 22:01:14 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-07-28 22:01:14 +0200 |
| commit | 65d312fd06ef7730cb6699923e17d8b05bd764d0 (patch) | |
| tree | cd5c0c8b7e5cbd854c98fef71f4cdcce45270e87 /src | |
| parent | f5fff81abb6766dc583701f3673b9ebece28856d (diff) | |
| download | zcatch-65d312fd06ef7730cb6699923e17d8b05bd764d0.tar.gz zcatch-65d312fd06ef7730cb6699923e17d8b05bd764d0.zip | |
fixed problem with lineinput. Closes #802
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/client/lineinput.cpp | 2 |
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; |