lazreport: prevent potential crash by Luiz Americo (issue #0014324)

git-svn-id: trunk@23231 -
This commit is contained in:
paul 2009-12-22 08:04:36 +00:00
parent b09f9f224a
commit 45513985a2

View File

@ -295,7 +295,7 @@ procedure DoFuncId; forward;
if buf^[i] > ' ' then Inc(c);
i := 0;
j := 1;
while c > 0 do
while (c > 0) and (i < MemoFrom.Count) do
begin
s1 := MemoFrom[i];
j := 1;