diff --git a/commands/elvis/tmp.c b/commands/elvis/tmp.c index 77ae0ef88..9102169d8 100755 --- a/commands/elvis/tmp.c +++ b/commands/elvis/tmp.c @@ -367,6 +367,9 @@ int tmpstart(filename) } nbytes++; } + if(i >= MAXBLKS) { + FAIL("Too many blocks: %d.", i); + } lnum[i - 1] = nlines; } FoundEOF: