mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed problem with lineinput. Closes #802
This commit is contained in:
parent
f5fff81abb
commit
65d312fd06
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue