Merge pull request #213 from sureshsundriyal/wip

[coverity] buffer overrun.
This commit is contained in:
Tim Stack 2015-04-10 03:05:11 -07:00
commit 2981357ed4
1 changed files with 1 additions and 1 deletions

View File

@ -3858,7 +3858,7 @@ static void looper(void)
while ((ch = getch()) != ERR) {
alerter::singleton().new_input(ch);
if (escape_index > sizeof(escape_buffer) - 1) {
if (escape_index >= sizeof(escape_buffer) - 1) {
escape_index = 0;
}
else if (escape_index > 0) {