mirror of https://github.com/tstack/lnav.git
Merge pull request #213 from sureshsundriyal/wip
[coverity] buffer overrun.
This commit is contained in:
commit
2981357ed4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue