diff --git a/UApp.pas b/UApp.pas
index 41e3f34..2c41d9b 100644
--- a/UApp.pas
+++ b/UApp.pas
@@ -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
diff --git a/logfilter.lpi b/logfilter.lpi
index 037c22c..9f74e1e 100644
--- a/logfilter.lpi
+++ b/logfilter.lpi
@@ -52,6 +52,7 @@
+