File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ class function TLazXml.ExtractBlock(const AContent, AOpenTag: string): string;
364364 CloseTag := ' </' + AOpenTag + ' >' ;
365365 Q := PosEx(CloseTag, AContent, P);
366366 if Q = 0 then
367- Result := Copy(AContent, P, MaxInt )
367+ Result := Copy(AContent, P, Length(AContent) - P + 1 )
368368 else
369369 Result := Copy(AContent, P, Q - P + Length(CloseTag));
370370end ;
@@ -440,7 +440,7 @@ class function TLazXml.ArgsHasFuPath(const AArgs: TStrings; const APath: string)
440440 begin
441441 if not StartsText(' -Fu' , AArgs[I]) then
442442 Continue;
443- ArgPath := Copy(AArgs[I], 4 , MaxInt );
443+ ArgPath := Copy(AArgs[I], 4 , Length(AArgs[I]) - 3 );
444444 if SameText(Norm, LowerCase(ExpandFileName(ExcludeTrailingPathDelimiter(ArgPath)))) then
445445 Exit(True);
446446 end ;
You can’t perform that action at this time.
0 commit comments