fix a crash
This commit is contained in:
parent
6e7def937f
commit
4ac36b567e
1 changed files with 1 additions and 1 deletions
|
@ -847,7 +847,7 @@ static void InputKey(int key)
|
|||
removeCursorFromInput();
|
||||
// save to history
|
||||
strncpy(InputHistory + (InputHistoryIdx * sizeof(Input)), Input, sizeof(Input));
|
||||
if (InputHistorySize < MaxInputHistorySize) {
|
||||
if (InputHistorySize < MaxInputHistorySize - 1) {
|
||||
InputHistorySize++;
|
||||
InputHistoryIdx = InputHistorySize;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue