Fixed potential segfault

This commit is contained in:
Andreas Schneider 2015-09-25 14:52:52 +02:00
parent 1cfe8ec420
commit c3c26681e1
2 changed files with 2 additions and 1 deletions

View File

@ -287,7 +287,7 @@ begin
else
checkStart := bufPos;
for i := checkStart to bufMax do
for i := checkStart to bufMax - 1 do
begin
if b[i] = #10 then
begin

View File

@ -52,6 +52,7 @@
<RunParams>
<local>
<FormatVersion Value="1"/>
<CommandLineParams Value="-c example.filter --poll"/>
</local>
</RunParams>
<Units Count="4">